www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\xcomasp\nd_view_art.asp
<% '************************************************************** ' 新动软网站管理系统 ' 官方网站: http://www.aspcpu.com ' 系统作者: 阮丁远(网名:天 下 程 序) ' Copyright 新动软网站管理系统 版权所有 '************************************************************** %> <% '全局考虑,加on error resume next on error resume next dir_set="..\" nodooooooa=0 if have_a1="" then have_a1="1" '*********************************************** '函数名:JoinChar '作 用:向地址中加入 ? 或 & '参 数:strUrl ----网址 '返回值:加了 ? 或 & 的网址 '*********************************************** function JoinChar(strUrl) if strUrl="" then JoinChar="" exit function end if if InStr(strUrl,"?")<len(strUrl) then if InStr(strUrl,"?")>1 then if InStr(strUrl,"&")<len(strUrl) then JoinChar=strUrl & "&" else JoinChar=strUrl end if else JoinChar=strUrl & "?" end if else JoinChar=strUrl end if end function 'Dim Fy_Url,Fy_a,Fy_x,Fy_Cs(),Fy_Cl,Fy_Ts,Fy_Zx '---定义部份 头------ Fy_Cl = 2 '处理方式:1=提示信息,2=转向页面,3=先提示再转向 Fy_Zx = "/Error.Asp" '出错时转向的页面 '---定义部份 尾------ 'ruandingyuan xiugai Fy_Url=Request.ServerVariables("QUERY_STRING") Fy_a=split(Fy_Url,"&") redim Fy_Cs(ubound(Fy_a)) for Fy_x=0 to ubound(Fy_a) Fy_Cs(Fy_x) = left(Fy_a(Fy_x),instr(Fy_a(Fy_x),"=")-1) Next For Fy_x=0 to ubound(Fy_Cs) If Fy_Cs(Fy_x)<>"" Then If Instr(LCase(Request(Fy_Cs(Fy_x))),"'")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"and ")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"and%20")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"select")<>0 or (Instr(LCase(Request(Fy_Cs(Fy_x))),"update")<>0 and Instr(LCase(Request(Fy_Cs(Fy_x))),"set")<>0) or Instr(LCase(Request(Fy_Cs(Fy_x))),"chr")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"delete%20from")<>0 or (Instr(LCase(Request(Fy_Cs(Fy_x))),"delete")<>0 and Instr(LCase(Request(Fy_Cs(Fy_x))),"from")<>0) or Instr(LCase(Request(Fy_Cs(Fy_x))),";")<>0 or (Instr(LCase(Request(Fy_Cs(Fy_x))),"insert")<>0 and Instr(LCase(Request(Fy_Cs(Fy_x))),"into")<>0) or Instr(LCase(Request(Fy_Cs(Fy_x))),"mid")<>0 Or Instr(LCase(Request(Fy_Cs(Fy_x))),"master.")<>0 Then Select Case Fy_Cl Case "1" Response.Write "<Script Language=JavaScript>alert('出现错误!参数 "&Fy_Cs(Fy_x)&" 的值中包含非法字符串!\n\n 请不要在参数中出现:;,and%20,select%20,update%20,insert%20,delete,chr 等非法字符!);window.close();</Script>" Case "2" Response.Write "<Script Language=JavaScript>location.href='"&Fy_Zx&"'</Script>" Case "3" Response.Write "<Script Language=JavaScript>alert('出现错误!参数 "&Fy_Cs(Fy_x)&"的值中包含非法字符串!\n\n 请不要在参数中出现:;,and%20,select%20,update%20,insert%20,delete%20,chr 等非法字符!);location.href='"&Fy_Zx&"';</Script>" End Select nodooooooa=1 Response.End End If End If Next 'post方式的sql注入,则直接禁止站点外部提交post if lcase(Request.Servervariables("REQUEST_METHOD"))="post" then server_v1=Cstr(Request.ServerVariables("HTTP_REFERER")) server_v2=Cstr(Request.ServerVariables("SERVER_NAME")) if mid(server_v1,8,len(server_v2))<>server_v2 then nodooooooa=1 response.write "<br><br><center><table border=1 cellpadding=20 bordercolor=black bgcolor=#EEEEEE width=450>" response.write "<tr><td style='font:9pt Verdana'>" response.write "你提交的路径有误,禁止从站点外部提交数据,请不要乱该参数!" response.write "</td></tr></table></center>" response.end end if end if nd_web_output_folder_b="xndasp" nd_web_output_folder_qiye_b="xcomasp" 'Dim ConnStr if nodooooooa=0 then ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(dir_set&"data\##%20newDdata8-5-2##.mdb") Set newdsoft_conn_obj = Server.CreateObject("ADODB.Connection") newdsoft_conn_obj.open ConnStr If Err Then Err.Clear Set newdsoft_conn_obj = Nothing Response.Write "数据库连接出错,请检查Conn.asp文件中的数据库参数设置。" Response.End End If end if if request("ruandingyuan_do")="getinfox" then response.write "本站使用新"&""&"动"&"软系统制作,"&"系"&"统"&"作"&"者:"&"阮"&""&"丁"&"远,官网:ww"&"w.as"&"pcpu.com" response.end end if J_True = "True" J_False = "False" J_Now = "Now()" '获得现在的时间 end if '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 if is_haved_g_fontaa="" then is_haved_g_fontaa="1" Function getFontMode(str, vColor, vFont,vSize) Dim FontStr, tColor Dim ColorStr, arrColor If IsNull(str) Then getFontMode = "" Exit Function End If getFontMode = str FontStr=str Select Case CInt(vFont) Case 1 FontStr = "<b>" & str & "</b>" Case 2 FontStr = "<em>" & str & "</em>" Case 3 FontStr = "<u>" & str & "</u>" Case 4 FontStr = "<b><em>" & str & "</em></b>" Case 5 FontStr = "<b><u>" & str & "</u></b>" Case 6 FontStr = "<em><u>" & str & "</u></em>" Case 7 FontStr = "<b><em><u>" & str & "</u></em></b>" Case Else FontStr = str End Select getFontMode = FontStr If vColor = "" Then Exit Function 'ColorStr = "," & InitTitleColor 'arrColor = Split(ColorStr, ",") 'If vColor > UBound(arrColor) Then Exit Function 'tColor = Trim(arrColor(vColor)) if vColor ="0" then 'ssscolor="<font style='font-size:"&vSize&" px;'>" 'ssscolor2="</font>" else 'ssscolor="<font color="&vColor&" style='font-size:"&vSize&" px;'>" 'ssscolor2="</font>" ssscolor="<span style='color:"&vColor&";'>" ssscolor2="</span>" end if getFontMode = ssscolor& FontStr & ssscolor2 End Function end if '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 if haved_atype_a="" then haved_atype_a="1" function get_art_type(in1) get_art_type="" if in1="1" then get_art_type="<font color=red>[图文]</font>" if in1="2" then get_art_type="<font color=red>[组图]</font>" if in1="3" then get_art_type="<font color=red>[新闻]</font>" if in1="4" then get_art_type="<font color=red>[推荐]</font>" if in1="5" then get_art_type="<font color=red>[注意]</font>" if in1="6" then get_art_type="<font color=red>[转载]</font>" if in1="7" then get_art_type="<font color=red>[最新]</font>" end function end if '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 function findx_price(grade_id,str) rst2="" if str<>"" then other_params=split(str,"|") for i=0 to ubound(other_params) sss11=split(other_params(i),":") sss11a=sss11(0) sss11b=sss11(1) if cstr(sss11a)=cstr(grade_id) then rst2=sss11b exit for end if next end if if isnumeric(rst2)<>true then rst2="" end if findx_price=rst2 end function '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 Function n_RemoveHTML_mdx(strHTML) n_RemoveHTML_md="" on error resume next strHTML=cstr(strHTML&"") Set objRegExp = New Regexp objRegExp.IgnoreCase = True objRegExp.Global = True '取闭合的<> objRegExp.Pattern = "<.+?>" '进行匹配 Set Matches = objRegExp.Execute(strHTML) ' 遍历匹配集合,并替换掉匹配的项目 For Each Match in Matches strHtml=Replace(strHTML,Match.Value,"") Next n_RemoveHTML_mdx=strHTML Set objRegExp = Nothing End Function '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 function replace_huanhangz(cont) cont=replace(cont,vbcrlf,"$$sx_aspcodex_huanhang$") cont=replace(cont,chr(10),"$$sx_aspcodex_huanhang$") cont= Replace(cont, CHR(13), "$$sx_aspcodex_huanhang$") cont= Replace(cont, CHR(9), "$$sx_aspcodex_huanhang$") cont=replace(cont,"=","$zzdenghaoaspcpu1$") cont=replace(cont,"&","$zzadnnhaoaspcpu1$") cont=replace(cont,"?","$zzwnnehaoaspcpu1$") replace_huanhangz=cont end function '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 Function UrlEncoding_x(DataStr) StrReturn = "" For Si = 1 To Len(DataStr) ThisChr = Mid(DataStr, Si, 1) If Abs(Asc(ThisChr)) < &HFF Then StrReturn = StrReturn & ThisChr Else InnerCode = Asc(ThisChr) If InnerCode < 0 Then InnerCode = InnerCode + &H10000 End If Hight8 = (InnerCode And &HFF00) \ &HFF Low8 = InnerCode And &HFF StrReturn = StrReturn & "%" & Hex(Hight8) & "%" & Hex(Low8) End If Next UrlEncoding_x = StrReturn End Function %><% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <% if have_added_funb="" then have_added_funb=1 isnnn=0 function isnnum(num1) If isnumeric(num1) = 0 Or IsNull(num1) or num1 = "" Then isnnn=0 else isnnn=1 end if end function function isddat(n1) If n1 = "" Or IsNull(n1) or IsDate(n1)=false Then isnnn=0 else isnnn=1 end if end function function isyn(n1) isnnn=9999 If n1 = true or n1=1 Then isnnn=1 end if If n1 = false or n1=0 Then isnnn=0 end if end function function get_rs_value(num1) execute("rsaaaaaaa1="&rsxxx1112&"("&num1&")") get_rs_value=rsaaaaaaa1 end function Function nohtml(ByVal str) Set regEx = New RegExp If IsNull(str) Or Trim(str) = "" Then nohtml = "" Exit Function End If regEx.Pattern = "(\<.[^\<]*\>)" str = regEx.Replace(str, "") regEx.Pattern = "(\<\/[^\<]*\>)" str = regEx.Replace(str, "") regEx.Pattern = "\[NextPage(.*?)\]" '解决“当在文章模块的频道中发布的是图片并使用分页标签[NextPage]或内容开始的前几行就使用分页标签时,一旦使用搜索来搜索该文时,搜索页就会显示分页标签”的问题 str = regEx.Replace(str, "") str = Replace(str, "'", "") str = Replace(str, Chr(34), "") str = Replace(str, vbCrLf, "") str = Trim(str) nohtml = str End Function Public Function ReplaceBadChar(strChar) If strChar = "" Or IsNull(strChar) Then ReplaceBadChar = "" Exit Function End If 'Dim strBadChar, arrBadChar, tempChar, i strBadChar = "',%,^,&,?,(,),<,>,[,],{,},/,\,;,:,exists,select,update,insert,=," & Chr(34) & "," & Chr(0) & "" arrBadChar = Split(strBadChar, ",") tempChar = strChar For i = 0 To UBound(arrBadChar) tempChar = Replace(tempChar, arrBadChar(i), "") Next ReplaceBadChar = tempChar End Function Function GetSubStr(ByVal str, ByVal strlen, bShowPoint) If str = "" Then GetSubStr = "" Exit Function End If 'Dim l, t, c, i, strTemp str = Replace(Replace(Replace(Replace(str, " ", " "), """, Chr(34)), ">", ">"), "<", "<") l = Len(str) t = 0 strTemp = str If strlen = "" Then strlen = 0 Else strlen = CLng(strlen) End If For i = 1 To l c = Abs(Asc(Mid(str, i, 1))) If c > 255 Then t = t + 2 Else t = t + 1 End If If t >= strlen Then strTemp = Left(str, i) Exit For End If Next If strTemp <> str And bShowPoint = True Then strTemp = strTemp & "…" End If GetSubStr = Replace(Replace(Replace(Replace(strTemp, " ", " "), Chr(34), """), ">", ">"), "<", "<") End Function ComeUrl = Trim(Request.ServerVariables("HTTP_REFERER")) Action = Trim(Request("Action")) FoundErr = False ErrMsg = "" If Right(InstallDir, 1) <> "/" Then strInstallDir = InstallDir & "/" Else strInstallDir = InstallDir End If Site_Sn = Replace(Replace(LCase(Request.ServerVariables("SERVER_NAME") & InstallDir), "/", ""), ".", "") '************************************************* '函数名:gotTopic '作 用:截字符串,汉字一个算两个字符,英文算一个字符 '参 数:str ----原字符串 ' strlen ----截取长度 '返回值:截取后的字符串 '************************************************* function gotTopic(str,strlen) if isnull(str) or str="" then gotTopic="" exit function end if 'dim l,t,c, i str=replace(replace(replace(replace(str," "," "),""",chr(34)),">",">"),"<","<") l=len(str) t=0 for i=1 to l c=Abs(Asc(Mid(str,i,1))) if c>255 then t=t+2 else t=t+1 end if if t>=strlen then gotTopic=left(str,i) & "…" exit for else gotTopic=str end if next gotTopic=replace(replace(replace(replace(gotTopic," "," "),chr(34),"""),">",">"),"<","<") end function '************************************************** '函数名:strLength '作 用:求字符串长度。汉字算两个字符,英文算一个字符。 '参 数:str ----要求长度的字符串 '返回值:字符串长度 '************************************************** function strLength(str) 'ON ERROR RESUME NEXT 'dim WINNT_CHINESE WINNT_CHINESE = (len("中国")=2) if WINNT_CHINESE then 'dim l,t,c 'dim i l=len(str) t=l for i=1 to l c=asc(mid(str,i,1)) if c<0 then c=c+65536 if c>255 then t=t+1 end if next strLength=t else strLength=len(str) end if if err.number<>0 then err.clear end function end if %> <html> <head> <title><%'complie-link:label-strat[$$get_title($xx_request_asp$id,1,$xx_request_asp$cid,article,$xx_request_asp$arid,1)] %> <% tttile="" ctypee="article" cide=request("cid") cnide=request("id") ctide=request("arid") isqy=1 zide=request("zid") if lcase(trim(ctypee))="article" then biaoqqa="[ND_Article_class]" biaoqq="[ND_Article]" biaoqqz="[ND_Article_Special]" end if if lcase(trim(ctypee))="down" then biaoqqa="[ND_down_class]" biaoqq="[ND_down]" biaoqqz="[ND_down_Special]" end if if lcase(trim(ctypee))="picsp" then biaoqqa="[ND_pic_or_sp_class]" biaoqq="[ND_pic_or_sp]" biaoqqz="[ND_pic_or_sp_Special]" end if if lcase(trim(ctypee))="cp" then biaoqqa="[ND_prod_class]" biaoqq="[ND_prod]" biaoqqz="[ND_prod_Special]" end if if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then set rs_kkkk21a=server.createobject("adodb.recordset") sql="select * from "&biaoqq&" where id="&ctide rs_kkkk21a.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21a.eof then tttile=tttile&" -"&rs_kkkk21a("title") end if end if if trim(zide)<>"" and trim(cstr(zide))<>"0" then set rs_kkkk21ax=server.createobject("adodb.recordset") sql="select * from "&biaoqqz&" where id="&zide rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21ax.eof then tttile=tttile&" -"&rs_kkkk21ax("Specialname") end if end if if trim(cide)<>"" and trim(cstr(cide))<>"0" then set rs_kkkk21=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&cide rs_kkkk21.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21.eof then tttile=tttile&" -"&rs_kkkk21("classname") fffidx=split(rs_kkkk21("parent_id_list"),",") for iinn=ubound(fffidx) to 0 step -1 ssixc=clng(fffidx(iinn)) if ssixc<>0 then set rs_kkkk21b=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&ssixc rs_kkkk21b.open sql,newdsoft_conn_obj,1,1 tttile=tttile&" -"&rs_kkkk21b("classname") rs_kkkk21b.close set rs_kkkk21b=nothing end if next end if end if if trim(cnide)<>"" and trim(cstr(cnide))<>"0" then set rs_kkkk211=server.createobject("adodb.recordset") sql="select * from ND_channel where sys_content_type_name='"&cnide&"'" rs_kkkk211.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk211.eof then tttile=tttile&" -"&rs_kkkk211("name") end if end if biao2="[ND_sys]" if cstr(isqy)<>"1" then set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1 end if wwwkeywords="" if not rs22t.eof then sss1a=split(rs22t("data"),"|") wwwname=sss1a(0) wemail=sss1a(1) wwwkeywords=sss1a(2) wwwbuttom=sss1a(3) tttile=tttile&" -"&wwwname end if ttypw=cstr(1) if ttypw="1" then response.write tttile if ttypw="2" then response.write tttile&","&wwwkeywords if ttypw="3" then response.write tttile %><%'complie-link:label-end[$$get_title($xx_request_asp$id,1,$xx_request_asp$cid,article,$xx_request_asp$arid,1)] %></title> <meta name="keywords" content="<%'complie-link:label-strat[$$get_title($xx_request_asp$id,2,$xx_request_asp$cid,article,$xx_request_asp$arid,1)] %> <% tttile="" ctypee="article" cide=request("cid") cnide=request("id") ctide=request("arid") isqy=1 zide=request("zid") if lcase(trim(ctypee))="article" then biaoqqa="[ND_Article_class]" biaoqq="[ND_Article]" biaoqqz="[ND_Article_Special]" end if if lcase(trim(ctypee))="down" then biaoqqa="[ND_down_class]" biaoqq="[ND_down]" biaoqqz="[ND_down_Special]" end if if lcase(trim(ctypee))="picsp" then biaoqqa="[ND_pic_or_sp_class]" biaoqq="[ND_pic_or_sp]" biaoqqz="[ND_pic_or_sp_Special]" end if if lcase(trim(ctypee))="cp" then biaoqqa="[ND_prod_class]" biaoqq="[ND_prod]" biaoqqz="[ND_prod_Special]" end if if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then set rs_kkkk21a=server.createobject("adodb.recordset") sql="select * from "&biaoqq&" where id="&ctide rs_kkkk21a.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21a.eof then tttile=tttile&" -"&rs_kkkk21a("title") end if end if if trim(zide)<>"" and trim(cstr(zide))<>"0" then set rs_kkkk21ax=server.createobject("adodb.recordset") sql="select * from "&biaoqqz&" where id="&zide rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21ax.eof then tttile=tttile&" -"&rs_kkkk21ax("Specialname") end if end if if trim(cide)<>"" and trim(cstr(cide))<>"0" then set rs_kkkk21=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&cide rs_kkkk21.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21.eof then tttile=tttile&" -"&rs_kkkk21("classname") fffidx=split(rs_kkkk21("parent_id_list"),",") for iinn=ubound(fffidx) to 0 step -1 ssixc=clng(fffidx(iinn)) if ssixc<>0 then set rs_kkkk21b=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&ssixc rs_kkkk21b.open sql,newdsoft_conn_obj,1,1 tttile=tttile&" -"&rs_kkkk21b("classname") rs_kkkk21b.close set rs_kkkk21b=nothing end if next end if end if if trim(cnide)<>"" and trim(cstr(cnide))<>"0" then set rs_kkkk211=server.createobject("adodb.recordset") sql="select * from ND_channel where sys_content_type_name='"&cnide&"'" rs_kkkk211.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk211.eof then tttile=tttile&" -"&rs_kkkk211("name") end if end if biao2="[ND_sys]" if cstr(isqy)<>"1" then set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1 end if wwwkeywords="" if not rs22t.eof then sss1a=split(rs22t("data"),"|") wwwname=sss1a(0) wemail=sss1a(1) wwwkeywords=sss1a(2) wwwbuttom=sss1a(3) tttile=tttile&" -"&wwwname end if ttypw=cstr(2) if ttypw="1" then response.write tttile if ttypw="2" then response.write tttile&","&wwwkeywords if ttypw="3" then response.write tttile %><%'complie-link:label-end[$$get_title($xx_request_asp$id,2,$xx_request_asp$cid,article,$xx_request_asp$arid,1)] %>" /> <meta name="description" content="<%'complie-link:label-strat[$$get_title($xx_request_asp$id,3,$xx_request_asp$cid,article,$xx_request_asp$arid,1)] %> <% tttile="" ctypee="article" cide=request("cid") cnide=request("id") ctide=request("arid") isqy=1 zide=request("zid") if lcase(trim(ctypee))="article" then biaoqqa="[ND_Article_class]" biaoqq="[ND_Article]" biaoqqz="[ND_Article_Special]" end if if lcase(trim(ctypee))="down" then biaoqqa="[ND_down_class]" biaoqq="[ND_down]" biaoqqz="[ND_down_Special]" end if if lcase(trim(ctypee))="picsp" then biaoqqa="[ND_pic_or_sp_class]" biaoqq="[ND_pic_or_sp]" biaoqqz="[ND_pic_or_sp_Special]" end if if lcase(trim(ctypee))="cp" then biaoqqa="[ND_prod_class]" biaoqq="[ND_prod]" biaoqqz="[ND_prod_Special]" end if if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then set rs_kkkk21a=server.createobject("adodb.recordset") sql="select * from "&biaoqq&" where id="&ctide rs_kkkk21a.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21a.eof then tttile=tttile&" -"&rs_kkkk21a("title") end if end if if trim(zide)<>"" and trim(cstr(zide))<>"0" then set rs_kkkk21ax=server.createobject("adodb.recordset") sql="select * from "&biaoqqz&" where id="&zide rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21ax.eof then tttile=tttile&" -"&rs_kkkk21ax("Specialname") end if end if if trim(cide)<>"" and trim(cstr(cide))<>"0" then set rs_kkkk21=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&cide rs_kkkk21.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21.eof then tttile=tttile&" -"&rs_kkkk21("classname") fffidx=split(rs_kkkk21("parent_id_list"),",") for iinn=ubound(fffidx) to 0 step -1 ssixc=clng(fffidx(iinn)) if ssixc<>0 then set rs_kkkk21b=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&ssixc rs_kkkk21b.open sql,newdsoft_conn_obj,1,1 tttile=tttile&" -"&rs_kkkk21b("classname") rs_kkkk21b.close set rs_kkkk21b=nothing end if next end if end if if trim(cnide)<>"" and trim(cstr(cnide))<>"0" then set rs_kkkk211=server.createobject("adodb.recordset") sql="select * from ND_channel where sys_content_type_name='"&cnide&"'" rs_kkkk211.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk211.eof then tttile=tttile&" -"&rs_kkkk211("name") end if end if biao2="[ND_sys]" if cstr(isqy)<>"1" then set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1 end if wwwkeywords="" if not rs22t.eof then sss1a=split(rs22t("data"),"|") wwwname=sss1a(0) wemail=sss1a(1) wwwkeywords=sss1a(2) wwwbuttom=sss1a(3) tttile=tttile&" -"&wwwname end if ttypw=cstr(3) if ttypw="1" then response.write tttile if ttypw="2" then response.write tttile&","&wwwkeywords if ttypw="3" then response.write tttile %><%'complie-link:label-end[$$get_title($xx_request_asp$id,3,$xx_request_asp$cid,article,$xx_request_asp$arid,1)] %>" /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="css/ndd.css" rel="stylesheet" type="text/css"> </head> <body><%'complie-link:label-strat[$$nd_qiyez_css()] %><!--nd_complie_linkx_start:[$$nd_qiyez_css()]xx--> <div><style type="text/css"> #globalNavArea { position:relative; width:auto; color:#4096b2; background:url(img/hd_nav_darkSel.gif) repeat-x; clear: both; float: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } #globalNavUL {margin:0px 0px 0px 0px;;padding:0;height:25px;width:100%;background:url(img/hd_nav_unsel.gif) repeat-x;} #globalNavUL li{line-height:14px;z-index:40000;margin:0 0 -1px;padding:0;float:left;position:relative;list-style-type:none;list-style-image:none;list-style-position:outside;} /*#globalNavUL li a{font-weight:bold;color:#3d5b81;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sep.gif) no-repeat right 0;} #globalNavUL li a:hover{font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;} */ #aaabb {line-height:14px;z-index:40000;margin:0px;padding:0;float:left;position:relative;list-style-type:none;list-style-image:none;list-style-position:outside;} #aaabb a{font-weight:bold;color:#3d5b81;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sep.gif) no-repeat right 0;} #aaabb a:hover{font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;} #globalNavUL .navdark2 {font-weight:bold;display:block;padding:8px 18px 8px 18px;color:#4096b2;background:url(img/hd_nav_darkSel.gif) repeat-x;} #globalNavUL .navdark {color:#4096b2;background:url(hd_nav_darkSel.gif) repeat-x;} #globalNavUL li.navdark a{font-weight:bold;color:#3d5b81;display:block;padding:8px 14px 7px 13px;text-decoration:none;background:url(img/hd_nav_darkSel.gif) no-repeat right 0;} #globalNavUL li.navdark a:hover{font-weight:bold;color:#fff;display:block;padding:7px 14px 7px 13px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;} #globalNavUL .selmenulinks {font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;} #globalNavmid {clear:both;background:#37aac9 url(hd_sub_bg2.gif) repeat-x;height:26px;border-top:0px solid #33a1be;margin:0 auto;} #globalNavbot {clear:both;background:#d8e7ee url(img/nav_bot.gif) repeat-x;height:6px;border-bottom:1px solid #fff;margin:0 auto;font-size:1px;line-height:0px;} #midbanner, #midbanner a, #midbanner img {line-height:1px;margin:0;padding:0;border:0;} #midbanner {overflow:hidden;} #pageMain, .maincol, .globalMain {position:relative;margin:0px 5px 0px 6px;width:970px;background:#fff;overflow:hidden;} .globalBody {position:relative;margin:0px 5px 0px 6px;width:970px;background:#fff;overflow:hidden;} .mastheadLinks { width: 150px; } .mastheadLinks ul li { text-align: left; line-height: 50%; list-style-type: none; padding-top: 0px; padding-right: 0; padding-bottom: 0px; padding-left: 2px; margin-top: 5px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; }</style></div><!--nd_complie_linkx_end:[$$nd_qiyez_css()]xx--><%'complie-link:label-end[$$nd_qiyez_css()] %> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="200" height="3" align="center" valign="bottom" bgcolor="CC0000"></td> <td width="734" height="3" align="center" valign="bottom" bgcolor="555F67"></td> </tr> </table> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0" background="img/bzbg.jpg"> <tr> <td width="241" height="81" align="center"><%'complie-link:label-strat[$$nd_logo()] %><!--nd_complie_linkx_start:[$$nd_logo()]xx--> <div><img height="60" alt="" hspace="4" width="130" vspace="2" border="0" src="img/logo.gif" /></div><!--nd_complie_linkx_end:[$$nd_logo()]xx--><%'complie-link:label-end[$$nd_logo()] %></td> <td width="762" height="81" align="center"><table width="90%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right"><img src="img/t1.jpg" width="11" height="10" hspace="3"><font color="999999"> <a href="index.asp">返回首页</a> </font> <img src="img/t3.jpg" width="9" height="10" hspace="3"> <font color="999999"><a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://');" href="#">设为首页</a> </font></td> </tr> </table></td> </tr> </table> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="34" align="center" valign="middle" background="img/hd_nav_darkSel.gif"><%'complie-link:label-strat[$$nd_menu1a(1,12)] %><!--nd_complie_linkx_start:[$$nd_menu1a(1,12)]xx--> <% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <%if havecssa_addedddxz="" then havecssa_addedddxz="1" %> <%end if%> <table style="margin: 0px" cellspacing="0" cellpadding="0" width="100%" border="0"> <%'complie-link:label-strat[$$include_get_font_str()] %><!--nd_complie_linkx_start:[$$include_get_font_str()]xx--> <% '本函数已放在adminKernel/cmplie_conn.....那个文件里,以免标签循环嵌套导致本函数循环定义而导致asp错误,但不能删本标签 %><!--nd_complie_linkx_end:[$$include_get_font_str()]xx--><%'complie-link:label-end[$$include_get_font_str()] %><% CurrentPage2760342341=replacebadchar(request("page2760342341")) if CurrentPage2760342341="" then CurrentPage2760342341=1 else if not IsNumeric(CurrentPage2760342341) then CurrentPage2760342341=1 else if int(CurrentPage2760342341)<=0 then CurrentPage2760342341=1 else CurrentPage2760342341=replaceBadchar(request("page2760342341")) end if end if end if yyyy1=12 sql="select [ND_channel].id,[ND_channel].lanmu_type,[ND_channel].sys_content_type_name,[ND_channel].is_hidden,[ND_channel].name,[ND_channel].is_link_class,[ND_channel].is_open_use_blank,[ND_channel].orders,[ND_channel].outlink,[ND_channel].titleColor,[ND_channel].titleFont,[ND_channel].channel_file_url,[ND_channel].dyn_channel_file_url,[ND_channel].channel_pic,[ND_channel].is_qiye from [ND_channel] where [ND_channel].is_qiye=1 and is_hidden='0' order by clng(orders) asc" %> <% maxperpage2760342341=9999 xxxx1=clng(9999/yyyy1) if (9999 mod yyyy1)<>0 then xxxx1=xxxx1+1 end if '获取自身文件名 aryxx =split(Request.ServerVariables("SCRIPT_NAME"),"/") fileNamexx = aryxx(ubound(aryxx)) strFileName=fileNamexx set rs_x1=server.CreateObject("adodb.recordset") rs_x1.open sql,newdsoft_conn_obj,1,1 if not rs_x1.eof then rs_x1.pagesize=MaxPerpage2760342341 totalnumber2760342341=rs_x1.recordcount if totalnumber2760342341 mod maxperpage2760342341=0 then MaxPage= totalnumber2760342341 \ MaxPerpage2760342341 else MaxPage= totalnumber2760342341 \ MaxPerpage2760342341+1 end if if int(CurrentPage2760342341)>int(MaxPage) then CurrentPage2760342341=MaxPage else CurrentPage2760342341=CurrentPage2760342341 end if rs_x1.absolutepage=CurrentPage2760342341 for ni2760342341=1 to xxxx1 if rs_x1.eof then exit for %><%%> <tr> <td colspan="2" height="10" align="center"> <div id="globalNavArea"> <ul id="globalNavUL"><%for bj2760342341=1 to yyyy1 if rs_x1.eof then exit for %><% if rs_x1("is_link_class")="1" then aurl=rs_x1("outlink") else aurl=rs_x1("dyn_channel_file_url") end if if rs_x1("is_open_use_blank")="1" then sopbln="_blank" else sopbln="_self" end if %> <% '获取字体的html nd_ret_font=getFontMode(rs_x1("name"),rs_x1("titleColor"),rs_x1("titleFont"),13) %> <% nd_ret_font=nd_ret_font %><% %> <li class="navdark"> <div id="aaabb"><a target="<%=sopbln%>" href="<%=aurl%>"><%=nd_ret_font%></a></div></li><% rs_x1.movenext next %> </ul> </div> </td> </tr><%next %> <% else %> <%=nd_sys_nocontent_msg_x_b%><%nd_sys_nocontent_msg_x_b=""%> <%end if %> <%if 0=1 then %> <tr> <td colspan="7" align="center" height="27" > <% call showpage2760342341(strFileName,totalnumber2760342341,MaxPerPage2760342341,true,true,"个",CurrentPage2760342341) %> </td> </tr> <%end if %></table><!--nd_complie_linkx_end:[$$nd_menu1a(1,12)]xx--><%'complie-link:label-end[$$nd_menu1a(1,12)] %></td> </tr> </table> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="999" height="246" hspace="0" vspace="0" align="middle"> <param name="movie" value="swf/topbn.swf"> <param name="quality" value="high"><param name="SCALE" value="exactfit"> <embed src="swf/topbn.swf" width="999" height="246" hspace="0" vspace="0" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit"></embed> </object></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="2" align="left" valign="top" bgcolor="DDDDDD"></td> </tr> </table> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0"> <tr align="center" valign="top"> <td width="196" height="547"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="5"></td> </tr> </table> <table width="180" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd"> <tr> <td height="28" background="img/menubg.jpg"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="61%" align="center"><strong><font color="000000">导航菜单</font></strong> </td> <td width="39%" class="eng">Menu</td> </tr> </table></td> </tr> <tr> <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="80" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="160" align="center" valign="middle"><%'complie-link:label-strat[$$art_class_tree_z(nd_artc_index.asp,15,$xx_request_asp$id,0)] %><!--nd_complie_linkx_start:[$$art_class_tree_z(nd_artc_index.asp,15,$xx_request_asp$id,0)]xx--> <% '如果第一级分类有子分类,点第一级分类时是否先不进入其分类链接,而先展开子分类 ishiddenfirstaa="0" '展开第二级子分类时,展开全部(如3,4,5级),还是只是第二级分类 iskkallaa=cstr(0) biao="[ND_Article_class]" biaosp="[ND_Article_Special]" biao2="[ND_Article]" sys_content_type=request("id") current_root_id=0 back_call_set_in_which_deepth=-123 function next_cen4456665401(pid_list,deepth) set rs=server.CreateObject("adodb.recordset") pppcid="-123" if pid_list<>"" then ppplista=split(pid_list,",") ppplistaubd=ubound(ppplista)-1 pppcid=ppplista(ppplistaubd) end if rs.open "select * from "&biao&" where ((deepth="&deepth&" and ((parent_id_list like '%"&pid_list&"%') or (parent_id='"&pppcid&"'))) and sys_content_type='"&sys_content_type&"') order by clng(orders) asc",newdsoft_conn_obj,1,1 if pid_list<>"" then lista=split(pid_list,",") numa=ubound(lista) p_id=cstr(lista(numa)) else p_id=0 end if i_stp=0 do while not rs.eof if deepth=0 then current_root_id=rs("id") if deepth=0 then back_call_set_in_which_deepth=-123 pid_list222=rs("parent_id_list")&","&rs("id")&"," deepth222=rs("deepth")+1 set rs2=server.CreateObject("adodb.recordset") rs2.open "select * from "&biao&" where ((deepth="&deepth222&" and ((parent_id_list like '%"&pid_list222&"%') or (parent_id='"&rs("id")&"'))) and sys_content_type='"&sys_content_type&"') order by clng(orders) asc",newdsoft_conn_obj,1,1 if deepth=0 then styleaa="display:inline" else styleaa="display:none" end if if cstr(rs("id"))=cstr(request("cid")) then styleaa="display:inline" back_call_set_in_which_deepth=deepth end if idddddd="_"¤t_root_id&"_"&deepth&"_"&i_stp if rs2.eof then if pid_list<>"" then lista=split(pid_list,",") numa=ubound(lista) p_id=cstr(lista(numa-1)) else p_id=0 end if if p_id=0 then p_id=-1 sedesdsz="&id="&sys_content_type if rs("is_link_class")="1" then suuurl=rs("outlink") else suuurl="nd_artc_index.asp?cid="&rs("id")&sedesdsz end if if rs("is_open_use_blank")="1" then ssss1="_blank" else ssss1="_self" end if hrfffffffa=suuurl response.write "<script language=javascript>"&vbcrlf response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf response.write "if (digui==1){"&vbcrlf response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf response.write "else{"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf '递归,展开下一层分类 response.write "if (nnnn==1){"&vbcrlf response.write "var aaaaa;"&vbcrlf response.write "var aaaaav=0;"&vbcrlf response.write "var posa;"&vbcrlf response.write "var posb;"&vbcrlf response.write "var rootid;"&vbcrlf response.write "var deepppp;"&vbcrlf response.write "var nummmmm;"&vbcrlf response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf response.write "}"&vbcrlf response.write "rootid=funn.substring(1,posa);"&vbcrlf response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf response.write "var deepi=deepppp+1;"&vbcrlf response.write "var nummi=0;"&vbcrlf response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf response.write "try{"&vbcrlf response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',0,1,\'\')');}"&vbcrlf response.write "catch(e)"&vbcrlf response.write "{"&vbcrlf response.write "if(nummi>22){"&vbcrlf response.write "nummi=9999;break;}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "if(url!=''){self.location=url;}"&vbcrlf response.write "}"&vbcrlf response.write "</script>"&vbcrlf response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"'>" response.write "<a href='"&hrfffffffa&"' target='"&ssss1&"' class=menu>" %><%for iiiii1=2 to cint(deepth222) if iiiii1=cint(deepth222) then response.write "├" %><% else response.write "│" %><% end if next %><%=left(rs("classname"),15)%><% response.write "</a><br>" response.write "</div>" if not rs.eof then rs.movenext 'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类 if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then response.write "<script language=javascript>" response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';" response.write "</script>" end if if rs.eof or rs.bof then 'response.write "</level0>" 'call next_cen_class(pid_list222,deepth222) exit function else need_benji_next=1 end if else 'response.write "<level0 id="""&rs("id")&""" parentTypeID=""" 'if deepth=0 then response.write "-1" else response.write p_id 'response.write """ caption="""&rs("ClassName")&""" PRI=""2"" explain="""&rs("id")&""" >"&vbcrlf %><% sedesdsz="&id="&sys_content_type if deepth=0 then if ishiddenfirstaa<>"1" then hrfffffffa="nd_artc_index.asp?cid="&rs("id")&sedesdsz hrfffffffab=hrfffffffa else hrfffffffa="javascript:" hrfffffffab="" end if else hrfffffffa="nd_artc_index.asp?cid="&rs("id")&sedesdsz hrfffffffab=hrfffffffa end if if iskkallaa<>"1" then iskkallaacc="0" else iskkallaacc="1" end if styleaax=" onclick="&chr(34)&"cpshow_zi_tree"&idddddd&"('"&idddddd&"',1,0,'&"&hrfffffffab&"&')"&chr(34)&" " response.write "<script language=javascript>"&vbcrlf response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf response.write "if (digui==1){"&vbcrlf response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf response.write "else{"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf '递归,展开下一层分类 response.write "if (nnnn==1){"&vbcrlf response.write "var aaaaa;"&vbcrlf response.write "var aaaaav=0;"&vbcrlf response.write "var posa;"&vbcrlf response.write "var posb;"&vbcrlf response.write "var rootid;"&vbcrlf response.write "var deepppp;"&vbcrlf response.write "var nummmmm;"&vbcrlf response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf response.write "}"&vbcrlf response.write "rootid=funn.substring(1,posa);"&vbcrlf response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf response.write "var deepi=deepppp+1;"&vbcrlf response.write "var nummi=0;"&vbcrlf response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf response.write "try{"&vbcrlf response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',"&iskkallaacc&",1,\'\')');}"&vbcrlf response.write "catch(e)"&vbcrlf response.write "{"&vbcrlf response.write "if(nummi>22){"&vbcrlf response.write "nummi=9999;break;}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "if(url!=''){self.location=url;}"&vbcrlf response.write "}"&vbcrlf response.write "</script>"&vbcrlf sedesdsz="&id="&request("id") if rs("is_link_class")="1" then suuurl=rs("outlink") else suuurl=hrfffffffa end if if rs("is_open_use_blank")="1" then ssss1="_blank" else ssss1="_self" end if '"&styleaax&" 一定不要放在<div id='cptree....里,不然会因为<div的嵌套而导致循环调用onclick response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"' >" response.write "<a href='"&suuurl&"' "&styleaax&" target='"&ssss1&"' class=menu>" %><%for iiiii1=2 to cint(deepth222) if iiiii1=cint(deepth222) then response.write "├" else response.write "│" end if next %><%=left(rs("classname"),15)%><% response.write "</a><br>" call next_cen4456665401(pid_list222,deepth222) response.write "</div>" 'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类 if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then response.write "<script language=javascript>" response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';" response.write "</script>" end if if not rs.eof then rs.movenext need_benji_next=1 if rs.eof or rs.bof then 'if deepth<>0 then response.write "</level0>" 'call next_cen_class(pid_list222,deepth222) exit function end if end if if need_benji_next=0 then exit do end if need_benji_next=0 i_stp=i_stp+1 loop end function call next_cen4456665401("",0) %><!--nd_complie_linkx_end:[$$art_class_tree_z(nd_artc_index.asp,15,$xx_request_asp$id,0)]xx--><%'complie-link:label-end[$$art_class_tree_z(nd_artc_index.asp,15,$xx_request_asp$id,0)] %></td> </tr> </table></td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="180" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd"> <tr> <td height="28" background="img/menubg.jpg"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="61%" align="center"><strong><font color="000000">产品搜索</font></strong> </td> <td width="39%" class="eng">Search</td> </tr> </table></td> </tr> <tr> <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="80" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <form action="nd_do_prod_search.asp" method="get"> <tr> <td height="5"></td> </tr> <tr> <td height="28" align="right"><input name="data" class="textbox" id="data" style="BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #c0c0c0; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #c0c0c0; PADDING-BOTTOM: 1px; CURSOR: hand; COLOR: #666666; BORDER-TOP-COLOR: #c0c0c0; PADDING-TOP: 1px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; HEIGHT: 20px; BACKGROUND-COLOR: #f7f7f7; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #c0c0c0 " value="请输入产品关键字..." size="18" maxlength="64" /></td> </tr> <tr> <td height="28" align="right"> <input name="imageField322" type="image" src="img/sear.gif" width="80" height="21" border="0" /></td> </tr></form> </table> </td> </tr> </table></td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="180" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd"> <tr> <td height="28" background="img/menubg.jpg"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="61%" align="center"><strong><font color="000000">产品导航</font></strong> </td> <td width="39%" class="eng">Prolist</td> </tr> </table></td> </tr> <tr> <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="120" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left"><%'complie-link:label-strat[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)] %><!--nd_complie_linkx_start:[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)]xx--> <% '如果第一级分类有子分类,点第一级分类时是否先不进入其分类链接,而先展开子分类 ishiddenfirstaa="0" '展开第二级子分类时,展开全部(如3,4,5级),还是只是第二级分类 iskkallaa=cstr(0) biao="[ND_prod_class]" biaog="[ND_userGroup]" biaosp="[ND_prod_Special]" biao2="[ND_prod]" sys_content_type="cp_id36" current_root_id=0 back_call_set_in_which_deepth=-123 function next_cen7175564703(pid_list,deepth) set rs=server.CreateObject("adodb.recordset") pppcid="-123" if pid_list<>"" then ppplista=split(pid_list,",") ppplistaubd=ubound(ppplista)-1 pppcid=ppplista(ppplistaubd) end if rs.open "select * from "&biao&" where ((deepth="&deepth&" and ((parent_id_list like '%"&pid_list&"%') or (parent_id='"&pppcid&"'))) and sys_content_type='"&sys_content_type&"') order by clng(orders) asc",newdsoft_conn_obj,1,1 if pid_list<>"" then lista=split(pid_list,",") numa=ubound(lista) p_id=cstr(lista(numa)) else p_id=0 end if i_stp=0 do while not rs.eof if deepth=0 then current_root_id=rs("id") if deepth=0 then back_call_set_in_which_deepth=-123 pid_list222=rs("parent_id_list")&","&rs("id")&"," deepth222=rs("deepth")+1 set rs2=server.CreateObject("adodb.recordset") rs2.open "select * from "&biao&" where ((deepth="&deepth222&" and ((parent_id_list like '%"&pid_list222&"%') or (parent_id='"&rs("id")&"'))) and sys_content_type='"&sys_content_type&"') order by clng(orders) asc",newdsoft_conn_obj,1,1 if deepth=0 then styleaa="display:inline" else styleaa="display:none" end if if cstr(rs("id"))=cstr(request("cid")) then styleaa="display:inline" back_call_set_in_which_deepth=deepth end if idddddd="_"¤t_root_id&"_"&deepth&"_"&i_stp if rs2.eof then if pid_list<>"" then lista=split(pid_list,",") numa=ubound(lista) p_id=cstr(lista(numa-1)) else p_id=0 end if if p_id=0 then p_id=-1 sedesdsz="&id="&sys_content_type if rs("is_link_class")="1" then suuurl=rs("outlink") else suuurl="nd_prod_list.asp?cid="&rs("id")&sedesdsz end if if rs("is_open_use_blank")="1" then ssss1="_blank" else ssss1="_self" end if hrfffffffa=suuurl response.write "<script language=javascript>"&vbcrlf response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf response.write "if (digui==1){"&vbcrlf response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf response.write "else{"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf '递归,展开下一层分类 response.write "if (nnnn==1){"&vbcrlf response.write "var aaaaa;"&vbcrlf response.write "var aaaaav=0;"&vbcrlf response.write "var posa;"&vbcrlf response.write "var posb;"&vbcrlf response.write "var rootid;"&vbcrlf response.write "var deepppp;"&vbcrlf response.write "var nummmmm;"&vbcrlf response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf response.write "}"&vbcrlf response.write "rootid=funn.substring(1,posa);"&vbcrlf response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf response.write "var deepi=deepppp+1;"&vbcrlf response.write "var nummi=0;"&vbcrlf response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf response.write "try{"&vbcrlf response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',0,1,\'\')');}"&vbcrlf response.write "catch(e)"&vbcrlf response.write "{"&vbcrlf response.write "if(nummi>22){"&vbcrlf response.write "nummi=9999;break;}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "if(url!=''){self.location=url;}"&vbcrlf response.write "}"&vbcrlf response.write "</script>"&vbcrlf response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"'>" response.write "<a href='"&hrfffffffa&"' target='"&ssss1&"' class=menu>" %><%for iiiii1=2 to cint(deepth222) if iiiii1=cint(deepth222) then response.write "├" %><% else response.write "│" %><% end if next %><%=left(rs("classname"),15)%><% response.write "</a><br>" response.write "</div>" if not rs.eof then rs.movenext 'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类 if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then response.write "<script language=javascript>" response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';" response.write "</script>" end if if rs.eof or rs.bof then 'response.write "</level0>" 'call next_cen_class(pid_list222,deepth222) exit function else need_benji_next=1 end if else 'response.write "<level0 id="""&rs("id")&""" parentTypeID=""" 'if deepth=0 then response.write "-1" else response.write p_id 'response.write """ caption="""&rs("ClassName")&""" PRI=""2"" explain="""&rs("id")&""" >"&vbcrlf %><% sedesdsz="&id="&sys_content_type if deepth=0 then if ishiddenfirstaa<>"1" then hrfffffffa="nd_prod_list.asp?cid="&rs("id")&sedesdsz hrfffffffab=hrfffffffa else hrfffffffa="javascript:" hrfffffffab="" end if else hrfffffffa="nd_prod_list.asp?cid="&rs("id")&sedesdsz hrfffffffab=hrfffffffa end if if iskkallaa<>"1" then iskkallaacc="0" else iskkallaacc="1" end if styleaax=" onclick="&chr(34)&"cpshow_zi_tree"&idddddd&"('"&idddddd&"',1,0,'&"&hrfffffffab&"&')"&chr(34)&" " response.write "<script language=javascript>"&vbcrlf response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf response.write "if (digui==1){"&vbcrlf response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf response.write "else{"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf '递归,展开下一层分类 response.write "if (nnnn==1){"&vbcrlf response.write "var aaaaa;"&vbcrlf response.write "var aaaaav=0;"&vbcrlf response.write "var posa;"&vbcrlf response.write "var posb;"&vbcrlf response.write "var rootid;"&vbcrlf response.write "var deepppp;"&vbcrlf response.write "var nummmmm;"&vbcrlf response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf response.write "}"&vbcrlf response.write "rootid=funn.substring(1,posa);"&vbcrlf response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf response.write "var deepi=deepppp+1;"&vbcrlf response.write "var nummi=0;"&vbcrlf response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf response.write "try{"&vbcrlf response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',"&iskkallaacc&",1,\'\')');}"&vbcrlf response.write "catch(e)"&vbcrlf response.write "{"&vbcrlf response.write "if(nummi>22){"&vbcrlf response.write "nummi=9999;break;}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "if(url!=''){self.location=url;}"&vbcrlf response.write "}"&vbcrlf response.write "</script>"&vbcrlf sedesdsz="&id="&request("id") if rs("is_link_class")="1" then suuurl=rs("outlink") else suuurl=hrfffffffa end if if rs("is_open_use_blank")="1" then ssss1="_blank" else ssss1="_self" end if '"&styleaax&" 一定不要放在<div id='cptree....里,不然会因为<div的嵌套而导致循环调用onclick response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"' >" response.write "<a href='"&suuurl&"' "&styleaax&" target='"&ssss1&"' class=menu>" %><%for iiiii1=2 to cint(deepth222) if iiiii1=cint(deepth222) then response.write "├" else response.write "│" end if next %><%=left(rs("classname"),15)%><% response.write "</a><br>" call next_cen7175564703(pid_list222,deepth222) response.write "</div>" 'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类 if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then response.write "<script language=javascript>" response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';" response.write "</script>" end if if not rs.eof then rs.movenext need_benji_next=1 if rs.eof or rs.bof then 'if deepth<>0 then response.write "</level0>" 'call next_cen_class(pid_list222,deepth222) exit function end if end if if need_benji_next=0 then exit do end if need_benji_next=0 i_stp=i_stp+1 loop end function call next_cen7175564703("",0) %><!--nd_complie_linkx_end:[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)]xx--><%'complie-link:label-end[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)] %></td> </tr> </table></td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> </td> <td width="1" bgcolor="dddddd"></td> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="96%" border=0 align="center" cellpadding=0 cellspacing=6> <tr valign=bottom> <td width="4%" align="right"><b><img src="img/M.jpg" width="12" height="13" hspace="3"></b></td> <td width="96%"><b><strong><%'complie-link:label-strat[$$get_lanmu_ming($xx_request_asp$id)] %><!--nd_complie_linkx_start:[$$get_lanmu_ming($xx_request_asp$id)]xx--> <% tttile="" cnide=request("id") if trim(cnide)<>"" and trim(cstr(cnide))<>"0" then set rs_kkkk211=server.createobject("adodb.recordset") sql="select * from ND_channel where sys_content_type_name='"&cnide&"'" rs_kkkk211.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk211.eof then tttile=tttile&rs_kkkk211("name") end if end if response.write tttile %><!--nd_complie_linkx_end:[$$get_lanmu_ming($xx_request_asp$id)]xx--><%'complie-link:label-end[$$get_lanmu_ming($xx_request_asp$id)] %></strong> | </b></td> </tr> <tr> <td colspan="2"> <table height=1 cellspacing=0 cellpadding=0 width="100%" border=0> <tr> <td width="20%" bgcolor=#ff0000 height=2></td> <td width="72%" bgcolor=#dddddd height=2></td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <br> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC"> <tr> <td align="left" valign="middle" class="gs" style="word-break:break-all"> </td> </tr> <tr> <td height="73" align="left" valign="middle" class="gs"><%'complie-link:label-strat[$$nd_view_art($xx_request_asp$arid)] %><!--nd_complie_linkx_start:[$$nd_view_art($xx_request_asp$arid)]xx--> <% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <table border="0" cellpadding="0" cellspacing="0" ><% sql="select [ND_Article].id,[ND_Article].sys_content_type,[ND_Article].title,[ND_Article].sub_title,[ND_Article].classid,[ND_Article].SpecialID,[ND_Article].titleColor,[ND_Article].titleFont,[ND_Article].index_page_pic,[ND_Article].content,[ND_Article].is_outlink,[ND_Article].outlink,[ND_Article].Author_nick,[ND_Article].Comefrom,[ND_Article].is_new,[ND_Article].is_tuijian,[ND_Article].isTop,[ND_Article].Hits,[ND_Article].DayHits,[ND_Article].MonthHits,[ND_Article].HitsTime,[ND_Article].WriteTime,[ND_Article].username,[ND_Article].out_and_inner_img_list,[ND_Article].UploadImage_list,[ND_Article].Uploadfile_list,[ND_Article].is_shenhe,[ND_Article].is_can_pinlun,[ND_Article].is_auto_fenye,[ND_Article].xiangguan_wenzhang_keywords_list,[ND_Article].xing_ji,[ND_Article].update_time_input,[ND_Article].biaozi,[ND_Article].liulang_dengji_group_id,[ND_Article].dianshuo_to_look from [ND_Article] where [ND_Article].id="&request("arid")&"" set rs_x=server.CreateObject("adodb.recordset") rs_x.open sql,newdsoft_conn_obj,1,1 if not rs_x.eof then %><tr><td align="center"> <div><style type="text/css"> .picsize img {max-height:510px; max-width:510px; width:expression(this.width > 510 && this.height < this.width ? 510: true); height:expression(this.height > 510 ? 510: true);}</style><%'complie-link:label-strat[$$include_replace_cont()] %><!--nd_complie_linkx_start:[$$include_replace_cont()]xx--> <% function rp_usef_cont(sstrs) biao2="[ND_sys]" set rs22x=server.CreateObject("adodb.recordset") rs22x.open "select top 1 * from "&biao2&" where type='config_settings'",newdsoft_conn_obj,1,1 ddd1=rs22x("data") dddd12=split(ddd1,"|") str18=cstr(dddd12(19)) If Trim(str18) <> "" Then ContentKeywordStr = Split(str18, "@xndsoft1314@xxx@") For ixxx = 0 To UBound(ContentKeywordStr) If ContentKeywordStr(ixxx) <> "" Then KeywordStr = Split(ContentKeywordStr(ixxx), "$ms$ndsoft1314$") kkknnn=trim(KeywordStr(0)) kkkurl=KeywordStr(1) if kkknnn<>"" and kkknnn<>"delete" then kkknnnb=split(kkknnn,"#") for isxix=0 to ubound(kkknnnb) kkknnnc=kkknnnb(isxix) if trim(kkknnnc)<>"" then kkknnna=trim(kkknnnc) sstrs=replace(sstrs,kkknnna,"<a href='"&kkkurl&"' title='"&kkknnna&"' target='_blank'>"&kkknnna&"</a>",1,-1,1) end if next end if end if Next End If rp_usef_cont=sstrs end function %><!--nd_complie_linkx_end:[$$include_replace_cont()]xx--><%'complie-link:label-end[$$include_replace_cont()] %> <% dianss=rs_x("dianshuo_to_look") grid=rs_x("liulang_dengji_group_id") %><%'complie-link:label-strat[$$include_pagination()] %><!--nd_complie_linkx_start:[$$include_pagination()]xx--> <% '================================================= '过程名:autoxpagexit(is_auto,contentxss,MaxCharPerPage_when_auto) '作 用:采用自动分页或手动分页方式显示具体的内容 '参 数:is_auto ----- 是否自动分 ' contentxss ----- 需要处理的内容 ' StrContent ----- 需要处理的内容 'qq:657697290,http://www.aspcpu.com,柏拉图的程序,新动软万能网站管理系统 '================================================= nd_spli_strs="[page_fenye]" '手动分页标志 cuuurrtpppstr="ndarticlepage" '页码的request变量名 strUrl="" strUrltempheiheihei="" function autoxpagexit(is_auto,contentxss) on error resume next '如果自动分页,每页显示多少字 MaxCharPerPage_when_auto=1700 if is_auto=1 then call AutoPagination(MaxCharPerPage_when_auto,contentxss) else call sd_pagexit(contentxss) end if end function '获取自身文件名 aryxx =split(Request.ServerVariables("SCRIPT_NAME"),"/") fileNamexx = aryxx(ubound(aryxx)) strfilename=fileNamexx sfilename=strfilename if instr(1,sfilename,"?",1)<>0 then sfilename=left(sfilename,instr(1,sfilename,"?",1)-1) else sfilename=sfilename end if strUrl=JoinCharzz(sfilename) Fy_Url1=Request.ServerVariables("QUERY_STRING") Fy_a1=split(Fy_Url1,"&") for Fy_x1=0 to ubound(Fy_a1) if instr(Fy_a1(Fy_x1),"=")=len(Fy_a1(Fy_x1)) then Fy_v ="" else Fy_v = mid(Fy_a1(Fy_x1),instr(Fy_a1(Fy_x1),"=")+1,len(Fy_a1(Fy_x1))) end if Fy_Cs_name= left(Fy_a1(Fy_x1),instr(Fy_a1(Fy_x1),"=")-1) if lcase(trim(Fy_Cs_name))<>lcase(cuuurrtpppstr) then strUrl=JoinCharzz(strUrl) strUrl=strUrl&Fy_Cs_name&"="&Fy_v end if Next strUrl=JoinCharzz(strUrl) strUrltempheiheihei=strUrl function JoinCharzz(strUrl) if strUrl="" then JoinCharzz="" exit function end if if InStr(strUrl,"?")<len(strUrl) then if InStr(strUrl,"?")>1 then if InStr(strUrl,"&")<len(strUrl) then JoinCharzz=strUrl & "&" else JoinCharzz=strUrl end if else JoinCharzz=strUrl & "?" end if else JoinCharzz=strUrl end if end function sub AutoPagination(MaxCharPerPage,StrContent) 'dim CurrentPage 'dim ContentLen,MaxPerPage,pages,i,lngBound ' dim BeginPoint,EndPoint ContentLen=len(strContent) CurrentPage=trim(request(cuuurrtpppstr)) if ContentLen<=MaxCharPerPage then response.write strContent else if CurrentPage="" then CurrentPage=1 else CurrentPage=Cint(CurrentPage) end if pages=ContentLen\MaxCharPerPage if MaxCharPerPage*pages<ContentLen then pages=pages+1 end if lngBound=ContentLen '最大误差范围 if CurrentPage<1 then CurrentPage=1 if CurrentPage>pages then CurrentPage=pages dim lngTemp dim lngTemp1,lngTemp1_1,lngTemp1_2,lngTemp1_1_1,lngTemp1_1_2,lngTemp1_1_3,lngTemp1_2_1,lngTemp1_2_2,lngTemp1_2_3 dim lngTemp2,lngTemp2_1,lngTemp2_2,lngTemp2_1_1,lngTemp2_1_2,lngTemp2_2_1,lngTemp2_2_2 dim lngTemp3,lngTemp3_1,lngTemp3_2,lngTemp3_1_1,lngTemp3_1_2,lngTemp3_2_1,lngTemp3_2_2 dim lngTemp4,lngTemp4_1,lngTemp4_2,lngTemp4_1_1,lngTemp4_1_2,lngTemp4_2_1,lngTemp4_2_2 dim lngTemp5,lngTemp5_1,lngTemp5_2 dim lngTemp6,lngTemp6_1,lngTemp6_2 if CurrentPage=1 then BeginPoint=1 else BeginPoint=MaxCharPerPage*(CurrentPage-1)+1 lngTemp1_1_1=instr(BeginPoint,strContent,"</table>",1) lngTemp1_1_2=instr(BeginPoint,strContent,"</TABLE>",1) lngTemp1_1_3=instr(BeginPoint,strContent,"</Table>",1) if lngTemp1_1_1>0 then lngTemp1_1=lngTemp1_1_1 elseif lngTemp1_1_2>0 then lngTemp1_1=lngTemp1_1_2 elseif lngTemp1_1_3>0 then lngTemp1_1=lngTemp1_1_3 else lngTemp1_1=0 end if lngTemp1_2_1=instr(BeginPoint,strContent,"<table",1) lngTemp1_2_2=instr(BeginPoint,strContent,"<TABLE",1) lngTemp1_2_3=instr(BeginPoint,strContent,"<Table",1) if lngTemp1_2_1>0 then lngTemp1_2=lngTemp1_2_1 elseif lngTemp1_2_2>0 then lngTemp1_2=lngTemp1_2_2 elseif lngTemp1_2_3>0 then lngTemp1_2=lngTemp1_2_3 else lngTemp1_2=0 end if if lngTemp1_1=0 and lngTemp1_2=0 then lngTemp1=BeginPoint else if lngTemp1_1>lngTemp1_2 then lngtemp1=lngTemp1_2 else lngTemp1=lngTemp1_1+8 end if end if lngTemp2_1_1=instr(BeginPoint,strContent,"</p>",1) lngTemp2_1_2=instr(BeginPoint,strContent,"</P>",1) if lngTemp2_1_1>0 then lngTemp2_1=lngTemp2_1_1 elseif lngTemp2_1_2>0 then lngTemp2_1=lngTemp2_1_2 else lngTemp2_1=0 end if lngTemp2_2_1=instr(BeginPoint,strContent,"<p",1) lngTemp2_2_2=instr(BeginPoint,strContent,"<P",1) if lngTemp2_2_1>0 then lngTemp2_2=lngTemp2_2_1 elseif lngTemp2_2_2>0 then lngTemp2_2=lngTemp2_2_2 else lngTemp2_2=0 end if if lngTemp2_1=0 and lngTemp2_2=0 then lngTemp2=BeginPoint else if lngTemp2_1>lngTemp2_2 then lngtemp2=lngTemp2_2 else lngTemp2=lngTemp2_1+4 end if end if lngTemp3_1_1=instr(BeginPoint,strContent,"</ur>",1) lngTemp3_1_2=instr(BeginPoint,strContent,"</UR>",1) if lngTemp3_1_1>0 then lngTemp3_1=lngTemp3_1_1 elseif lngTemp3_1_2>0 then lngTemp3_1=lngTemp3_1_2 else lngTemp3_1=0 end if lngTemp3_2_1=instr(BeginPoint,strContent,"<ur",1) lngTemp3_2_2=instr(BeginPoint,strContent,"<UR",1) if lngTemp3_2_1>0 then lngTemp3_2=lngTemp3_2_1 elseif lngTemp3_2_2>0 then lngTemp3_2=lngTemp3_2_2 else lngTemp3_2=0 end if if lngTemp3_1=0 and lngTemp3_2=0 then lngTemp3=BeginPoint else if lngTemp3_1>lngTemp3_2 then lngtemp3=lngTemp3_2 else lngTemp3=lngTemp3_1+5 end if end if if lngTemp1<lngTemp2 then lngTemp=lngTemp2 else lngTemp=lngTemp1 end if if lngTemp<lngTemp3 then lngTemp=lngTemp3 end if if lngTemp>BeginPoint and lngTemp<=BeginPoint+lngBound then BeginPoint=lngTemp else lngTemp4_1_1=instr(BeginPoint,strContent,"</li>",1) lngTemp4_1_2=instr(BeginPoint,strContent,"</LI>",1) if lngTemp4_1_1>0 then lngTemp4_1=lngTemp4_1_1 elseif lngTemp4_1_2>0 then lngTemp4_1=lngTemp4_1_2 else lngTemp4_1=0 end if lngTemp4_2_1=instr(BeginPoint,strContent,"<li",1) lngTemp4_2_1=instr(BeginPoint,strContent,"<LI",1) if lngTemp4_2_1>0 then lngTemp4_2=lngTemp4_2_1 elseif lngTemp4_2_2>0 then lngTemp4_2=lngTemp4_2_2 else lngTemp4_2=0 end if if lngTemp4_1=0 and lngTemp4_2=0 then lngTemp4=BeginPoint else if lngTemp4_1>lngTemp4_2 then lngtemp4=lngTemp4_2 else lngTemp4=lngTemp4_1+5 end if end if if lngTemp4>BeginPoint and lngTemp4<=BeginPoint+lngBound then BeginPoint=lngTemp4 else lngTemp5_1=instr(BeginPoint,strContent,"<img",1) lngTemp5_2=instr(BeginPoint,strContent,"<IMG",1) if lngTemp5_1>0 then lngTemp5=lngTemp5_1 elseif lngTemp5_2>0 then lngTemp5=lngTemp5_2 else lngTemp5=BeginPoint end if if lngTemp5>BeginPoint and lngTemp5<BeginPoint+lngBound then BeginPoint=lngTemp5 else lngTemp6_1=instr(BeginPoint,strContent,"<br/>",1) lngTemp6_2=instr(BeginPoint,strContent,"<BR>",1) if lngTemp6_1>0 then lngTemp6=lngTemp6_1 elseif lngTemp6_2>0 then lngTemp6=lngTemp6_2 else lngTemp6=0 end if if lngTemp6>BeginPoint and lngTemp6<BeginPoint+lngBound then BeginPoint=lngTemp6+4 end if end if end if end if end if if CurrentPage=pages then EndPoint=ContentLen else EndPoint=MaxCharPerPage*CurrentPage if EndPoint>=ContentLen then EndPoint=ContentLen else lngTemp1_1_1=instr(EndPoint,strContent,"</table>",1) lngTemp1_1_2=instr(EndPoint,strContent,"</TABLE>",1) lngTemp1_1_3=instr(EndPoint,strContent,"</Table>",1) if lngTemp1_1_1>0 then lngTemp1_1=lngTemp1_1_1 elseif lngTemp1_1_2>0 then lngTemp1_1=lngTemp1_1_2 elseif lngTemp1_1_3>0 then lngTemp1_1=lngTemp1_1_3 else lngTemp1_1=0 end if lngTemp1_2_1=instr(EndPoint,strContent,"<table",1) lngTemp1_2_2=instr(EndPoint,strContent,"<TABLE",1) lngTemp1_2_3=instr(EndPoint,strContent,"<Table",1) if lngTemp1_2_1>0 then lngTemp1_2=lngTemp1_2_1 elseif lngTemp1_2_2>0 then lngTemp1_2=lngTemp1_2_2 elseif lngTemp1_2_3>0 then lngTemp1_2=lngTemp1_2_3 else lngTemp1_2=0 end if if lngTemp1_1=0 and lngTemp1_2=0 then lngTemp1=EndPoint else if lngTemp1_1>lngTemp1_2 then lngtemp1=lngTemp1_2-1 else lngTemp1=lngTemp1_1+7 end if end if lngTemp2_1_1=instr(EndPoint,strContent,"</p>",1) lngTemp2_1_2=instr(EndPoint,strContent,"</P>",1) if lngTemp2_1_1>0 then lngTemp2_1=lngTemp2_1_1 elseif lngTemp2_1_2>0 then lngTemp2_1=lngTemp2_1_2 else lngTemp2_1=0 end if lngTemp2_2_1=instr(EndPoint,strContent,"<p",1) lngTemp2_2_2=instr(EndPoint,strContent,"<P",1) if lngTemp2_2_1>0 then lngTemp2_2=lngTemp2_2_1 elseif lngTemp2_2_2>0 then lngTemp2_2=lngTemp2_2_2 else lngTemp2_2=0 end if if lngTemp2_1=0 and lngTemp2_2=0 then lngTemp2=EndPoint else if lngTemp2_1>lngTemp2_2 then lngTemp2=lngTemp2_2-1 else lngTemp2=lngTemp2_1+3 end if end if lngTemp3_1_1=instr(EndPoint,strContent,"</ur>",1) lngTemp3_1_2=instr(EndPoint,strContent,"</UR>",1) if lngTemp3_1_1>0 then lngTemp3_1=lngTemp3_1_1 elseif lngTemp3_1_2>0 then lngTemp3_1=lngTemp3_1_2 else lngTemp3_1=0 end if lngTemp3_2_1=instr(EndPoint,strContent,"<ur",1) lngTemp3_2_2=instr(EndPoint,strContent,"<UR",1) if lngTemp3_2_1>0 then lngTemp3_2=lngTemp3_2_1 elseif lngTemp3_2_2>0 then lngTemp3_2=lngTemp3_2_2 else lngTemp3_2=0 end if if lngTemp3_1=0 and lngTemp3_2=0 then lngTemp3=EndPoint else if lngTemp3_1>lngTemp3_2 then lngtemp3=lngTemp3_2-1 else lngTemp3=lngTemp3_1+4 end if end if if lngTemp1<lngTemp2 then lngTemp=lngTemp2 else lngTemp=lngTemp1 end if if lngTemp<lngTemp3 then lngTemp=lngTemp3 end if if lngTemp>EndPoint and lngTemp<=EndPoint+lngBound then EndPoint=lngTemp else lngTemp4_1_1=instr(EndPoint,strContent,"</li>",1) lngTemp4_1_2=instr(EndPoint,strContent,"</LI>",1) if lngTemp4_1_1>0 then lngTemp4_1=lngTemp4_1_1 elseif lngTemp4_1_2>0 then lngTemp4_1=lngTemp4_1_2 else lngTemp4_1=0 end if lngTemp4_2_1=instr(EndPoint,strContent,"<li",1) lngTemp4_2_1=instr(EndPoint,strContent,"<LI",1) if lngTemp4_2_1>0 then lngTemp4_2=lngTemp4_2_1 elseif lngTemp4_2_2>0 then lngTemp4_2=lngTemp4_2_2 else lngTemp4_2=0 end if if lngTemp4_1=0 and lngTemp4_2=0 then lngTemp4=EndPoint else if lngTemp4_1>lngTemp4_2 then lngtemp4=lngTemp4_2-1 else lngTemp4=lngTemp4_1+4 end if end if if lngTemp4>EndPoint and lngTemp4<=EndPoint+lngBound then EndPoint=lngTemp4 else lngTemp5_1=instr(EndPoint,strContent,"<img",1) lngTemp5_2=instr(EndPoint,strContent,"<IMG",1) if lngTemp5_1>0 then lngTemp5=lngTemp5_1-1 elseif lngTemp5_2>0 then lngTemp5=lngTemp5_2-1 else lngTemp5=EndPoint end if if lngTemp5>EndPoint and lngTemp5<EndPoint+lngBound then EndPoint=lngTemp5 else lngTemp6_1=instr(EndPoint,strContent,"<br/>",1) lngTemp6_2=instr(EndPoint,strContent,"<BR>",1) if lngTemp6_1>0 then lngTemp6=lngTemp6_1+3 elseif lngTemp6_2>0 then lngTemp6=lngTemp6_2+3 else lngTemp6=EndPoint end if if lngTemp6>EndPoint and lngTemp6<EndPoint+lngBound then EndPoint=lngTemp6 end if end if end if end if end if end if response.write mid(strContent,BeginPoint,EndPoint-BeginPoint) response.write "</p><p align='center'><b>" if CurrentPage>1 then response.write "<a href='" & strUrltempheiheihei & cuuurrtpppstr& "=" & CurrentPage-1 & "'>上一页</a> " end if for i=1 to pages if i=CurrentPage then response.write "<font color='red'>[" & cstr(i) & "]</font> " else response.write "<a href='" & strUrltempheiheihei& cuuurrtpppstr& "=" & i & "'>[" & i & "]</a> " end if next if CurrentPage<pages then response.write " <a href='" &strUrltempheiheihei& cuuurrtpppstr& "=" & CurrentPage+1 & "'>下一页</a>" end if response.write "</b></p>" end if end sub sub sd_pagexit(contentxss) on error resume next contentxss=replace(contentxss,nd_spli_strs,lcase(nd_spli_strs),1,-1,1) '把contentxss中的所有[page_fenye]转为小写 if instr(1,contentxss,nd_spli_strs,1)=0 then response.write contentxss else linenumxx=split(contentxss,nd_spli_strs) '本例为计算字符串[page_fenye]标记的个数 allline=ubound(linenumxx)+1 '全文[page_fenye](换行标记)总数 pagecountxx=int(allline) '计算总页数 pagexx=request(cuuurrtpppstr) if isempty(pagexx) then thispage=1 else thispage=cint(pagexx) end if if thispage>pagecountxx then thispage=pagecountxx response.write linenumxx(thispage-1) '输出分页后的内容 response.write "<br>" response.write "<p align='center'>总共"&pagecountxx&"页 " for i=1 to pagecountxx if thispage=i then response.write "<第"&i&"页> " else response.write "<a href='"&strUrltempheiheihei& cuuurrtpppstr& "="&i&"'>[第"&i&"页]</a> " '输出所有分页链接 end if next end if end sub %><!--nd_complie_linkx_end:[$$include_pagination()]xx--><%'complie-link:label-end[$$include_pagination()] %> <%'complie-link:label-strat[$$chk_user_grade($xx_var_asp$grid,$xx_var_asp$dianss)] %><!--nd_complie_linkx_start:[$$chk_user_grade($xx_var_asp$grid,$xx_var_asp$dianss)]xx--> <% gide=cstr(grid) need_dian=clng(dianss) sussd="" if session("nd_cache_logined_user")<>"" then sussd=session("nd_cache_logined_user") else if request.Cookies("nd_cc_cache_logined_user")<>"" then sussd=request.Cookies("nd_cc_cache_logined_user") end if end if set rs2c2m1a1=server.CreateObject("adodb.recordset") rs2c2m1a1.open "select * from [ND_userGroup] where id="&gide&"",newdsoft_conn_obj,1,1 if not rs2c2m1a1.eof then xxxssccvzx=cstr(rs2c2m1a1("grades")) end if can_liulan=0 if sussd="" then if xxxssccvzx="1" then can_liulan=1 else can_liulan=0 errstr="本内容只有会员才可以浏览,您未登陆,无法浏览本内容" end if else set rs2c2m11=server.CreateObject("adodb.recordset") rs2c2m11.open "select * from [ND_user] where [username]='"&sussd&"'",newdsoft_conn_obj,1,3 gllllee=rs2c2m11("lever_id") set rs2c2m1a1x=server.CreateObject("adodb.recordset") rs2c2m1a1x.open "select * from [ND_userGroup] where id="&gllllee&"",newdsoft_conn_obj,1,1 u_grade=clng(rs2c2m1a1x("grades")) need_grade=clng(xxxssccvzx) u_dians=clng(rs2c2m11("dianshuo")) if u_grade>=need_grade then if u_dians>=need_dian then if session("newdsoft_dians_k")="" or DateDiff("s",session("newdsoft_dians_k"),Now())>20 then rs2c2m11("dianshuo")=rs2c2m11("dianshuo")-need_dian rs2c2m11.update() session("newdsoft_dians_k")=Now() end if can_liulan=1 else can_liulan=0 errstr="您的点数不足,无法浏览本内容,请联系管理员" end if else can_liulan=0 errstr="您的用户等级不够,无法浏览本内容,请联系管理员" end if end if if can_liulan=0 then response.write "<script language=javascript>alert('"&errstr&"');</script>" response.write "<br>"&errstr response.end end if %><!--nd_complie_linkx_end:[$$chk_user_grade($xx_var_asp$grid,$xx_var_asp$dianss)]xx--><%'complie-link:label-end[$$chk_user_grade($xx_var_asp$grid,$xx_var_asp$dianss)] %></div> <div class="picsize"> <table style="word-break: break-all" height="214" cellspacing="0" cellpadding="0" width="100%" align="center" border="0"> <tbody> <tr> <td valign="middle" align="center"><%'complie-link:label-strat[$$include_art_count(request("arid"))] %><!--nd_complie_linkx_start:[$$include_art_count(request("arid"))]xx--> <% stop_count_aaaa=0 stop_count_aastr="" '-----------------------------------------------------防刷新 If Request.Cookies("newdsoft")("norefresh")<>"" Then If DateDiff("s",Request.Cookies("newdsoft")("norefresh"),Now())<5 Then stop_count_aastr="防止恶意刷新功能已启动,请勿刷点击量" stop_count_aaaa=1 If Request.ServerVariables("QUERY_STRING")="" Then ppssppsssp1=Request.ServerVariables("URL") Else ppssppsssp1=Request.ServerVariables("URL")&"?"&Request.ServerVariables("QUERY_STRING") End If End IF End if Response.Cookies("newdsoft")("norefresh")=Now() '---------------------------------------------end--------防刷新 if stop_count_aaaa=0 and cstr(session("nd_making_htm_ad_n_add_x")&"")="" then biao2="[ND_Article]" set rs22cc=server.CreateObject("adodb.recordset") rs22cc.open "select top 1 * from "&biao2&" where id="&request("arid"),newdsoft_conn_obj,1,3 if month(rs22cc("HitsTime"))="" or month(rs22cc("HitsTime"))<>month(date()) then rs22cc("MonthHits")=1 else rs22cc("MonthHits")=rs22cc("MonthHits")+1 end if if rs22cc("HitsTime")="" or day(rs22cc("HitsTime"))<>day(date()) then rs22cc("DayHits")=1 else rs22cc("DayHits")=rs22cc("DayHits")+1 end if rs22cc("HitsTime")=date() rs22cc("Hits")=rs22cc("Hits")+1 rs22cc.update rs22cc.close set rs22cc=nothing end if %><!--nd_complie_linkx_end:[$$include_art_count(request("arid"))]xx--><%'complie-link:label-end[$$include_art_count(request("arid"))] %><%sqlxxx1112="select [ND_Article].id,[ND_Article].sys_content_type,[ND_Article].title,[ND_Article].sub_title,[ND_Article].classid,[ND_Article].SpecialID,[ND_Article].titleColor,[ND_Article].titleFont,[ND_Article].index_page_pic,[ND_Article].content,[ND_Article].is_outlink,[ND_Article].outlink,[ND_Article].Author_nick,[ND_Article].Comefrom,[ND_Article].is_new,[ND_Article].is_tuijian,[ND_Article].isTop,[ND_Article].Hits,[ND_Article].DayHits,[ND_Article].MonthHits,[ND_Article].HitsTime,[ND_Article].WriteTime,[ND_Article].username,[ND_Article].out_and_inner_img_list,[ND_Article].UploadImage_list,[ND_Article].Uploadfile_list,[ND_Article].is_shenhe,[ND_Article].is_can_pinlun,[ND_Article].is_auto_fenye,[ND_Article].xiangguan_wenzhang_keywords_list,[ND_Article].xing_ji,[ND_Article].update_time_input,[ND_Article].biaozi,[ND_Article].liulang_dengji_group_id,[ND_Article].dianshuo_to_look from [ND_Article] where [ND_Article].id="&request("arid")&"":rsxxx1112="rs_x":wewewe=cstr(get_rs_value(2))&"":response.write nohtml(cstr(get_rs_value(2))&"")%></td> </tr> <tr> <td bgcolor="#efefef">     作者:<%sqlxxx1112="select [ND_Article].id,[ND_Article].sys_content_type,[ND_Article].title,[ND_Article].sub_title,[ND_Article].classid,[ND_Article].SpecialID,[ND_Article].titleColor,[ND_Article].titleFont,[ND_Article].index_page_pic,[ND_Article].content,[ND_Article].is_outlink,[ND_Article].outlink,[ND_Article].Author_nick,[ND_Article].Comefrom,[ND_Article].is_new,[ND_Article].is_tuijian,[ND_Article].isTop,[ND_Article].Hits,[ND_Article].DayHits,[ND_Article].MonthHits,[ND_Article].HitsTime,[ND_Article].WriteTime,[ND_Article].username,[ND_Article].out_and_inner_img_list,[ND_Article].UploadImage_list,[ND_Article].Uploadfile_list,[ND_Article].is_shenhe,[ND_Article].is_can_pinlun,[ND_Article].is_auto_fenye,[ND_Article].xiangguan_wenzhang_keywords_list,[ND_Article].xing_ji,[ND_Article].update_time_input,[ND_Article].biaozi,[ND_Article].liulang_dengji_group_id,[ND_Article].dianshuo_to_look from [ND_Article] where [ND_Article].id="&request("arid")&"":rsxxx1112="rs_x":wewewe=cstr(get_rs_value(12))&"":response.write cstr(get_rs_value(12))&""%>   来源:<%sqlxxx1112="select [ND_Article].id,[ND_Article].sys_content_type,[ND_Article].title,[ND_Article].sub_title,[ND_Article].classid,[ND_Article].SpecialID,[ND_Article].titleColor,[ND_Article].titleFont,[ND_Article].index_page_pic,[ND_Article].content,[ND_Article].is_outlink,[ND_Article].outlink,[ND_Article].Author_nick,[ND_Article].Comefrom,[ND_Article].is_new,[ND_Article].is_tuijian,[ND_Article].isTop,[ND_Article].Hits,[ND_Article].DayHits,[ND_Article].MonthHits,[ND_Article].HitsTime,[ND_Article].WriteTime,[ND_Article].username,[ND_Article].out_and_inner_img_list,[ND_Article].UploadImage_list,[ND_Article].Uploadfile_list,[ND_Article].is_shenhe,[ND_Article].is_can_pinlun,[ND_Article].is_auto_fenye,[ND_Article].xiangguan_wenzhang_keywords_list,[ND_Article].xing_ji,[ND_Article].update_time_input,[ND_Article].biaozi,[ND_Article].liulang_dengji_group_id,[ND_Article].dianshuo_to_look from [ND_Article] where [ND_Article].id="&request("arid")&"":rsxxx1112="rs_x":wewewe=cstr(get_rs_value(13))&"":response.write cstr(get_rs_value(13))&""%> 发布时间:<%sqlxxx1112="select [ND_Article].id,[ND_Article].sys_content_type,[ND_Article].title,[ND_Article].sub_title,[ND_Article].classid,[ND_Article].SpecialID,[ND_Article].titleColor,[ND_Article].titleFont,[ND_Article].index_page_pic,[ND_Article].content,[ND_Article].is_outlink,[ND_Article].outlink,[ND_Article].Author_nick,[ND_Article].Comefrom,[ND_Article].is_new,[ND_Article].is_tuijian,[ND_Article].isTop,[ND_Article].Hits,[ND_Article].DayHits,[ND_Article].MonthHits,[ND_Article].HitsTime,[ND_Article].WriteTime,[ND_Article].username,[ND_Article].out_and_inner_img_list,[ND_Article].UploadImage_list,[ND_Article].Uploadfile_list,[ND_Article].is_shenhe,[ND_Article].is_can_pinlun,[ND_Article].is_auto_fenye,[ND_Article].xiangguan_wenzhang_keywords_list,[ND_Article].xing_ji,[ND_Article].update_time_input,[ND_Article].biaozi,[ND_Article].liulang_dengji_group_id,[ND_Article].dianshuo_to_look from [ND_Article] where [ND_Article].id="&request("arid")&"":rsxxx1112="rs_x":wewewe=cstr(get_rs_value(21))&"":response.write cstr(get_rs_value(21))&""%></td> </tr> <tr> <td><% isaatoxzn=clng(rs_x("is_auto_fenye")) ctntoxkk=rs_x("content") ctntoxkk=rp_usef_cont(ctntoxkk) call autoxpagexit(isaatoxzn,ctntoxkk) %></td> </tr> <tr> <td align="center"><%'complie-link:label-strat[$$nd_dings_it(request("arid"),article)] %><!--nd_complie_linkx_start:[$$nd_dings_it(request("arid"),article)]xx--> <%if have_add_dings_js="" then have_add_dings_js="1" %><!------------------------------------XMLHTTP------------------------><script language="JavaScript"> var zXml={useActiveX:(typeof ActiveXObject!="undefined"),useDom:document.implementation&&document.implementation.createDocument,useXmlHttp:(typeof XMLHttpRequest!="undefined")};zXml.ARR_XMLHTTP_VERS=["MSXML2.XmlHttp.6.0","MSXML2.XmlHttp.3.0"];zXml.ARR_DOM_VERS=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.3.0"];function zXmlHttp(){}zXmlHttp.createRequest=function(){if(zXml.useXmlHttp){return new XMLHttpRequest();}else if(zXml.useActiveX){if(!zXml.XMLHTTP_VER){for(var i=0;i<zXml.ARR_XMLHTTP_VERS.length;i++){try{new ActiveXObject(zXml.ARR_XMLHTTP_VERS[i]);zXml.XMLHTTP_VER=zXml.ARR_XMLHTTP_VERS[i];break;}catch(oError){;}}}if(zXml.XMLHTTP_VER){return new ActiveXObject(zXml.XMLHTTP_VER);}else{throw new Error("Could not create XML HTTP Request.");}}else{throw new Error("Your browser doesn't support an XML HTTP Request.");}};zXmlHttp.isSupported=function(){return zXml.useXmlHttp||zXml.useActiveX;};function zXmlDom(){}zXmlDom.createDocument=function(){if(zXml.useDom){var oXmlDom=document.implementation.createDocument("","",null);oXmlDom.parseError={valueOf:function(){return this.errorCode;},toString:function(){return this.errorCode.toString()}};oXmlDom.__initError__();oXmlDom.addEventListener("load",function(){this.__checkForErrors__();this.__changeReadyState__(4);},false);return oXmlDom;;}else if(zXml.useActiveX){if(!zXml.DOM_VER){for(var i=0;i<zXml.ARR_DOM_VERS.length;i++){try{new ActiveXObject(zXml.ARR_DOM_VERS[i]);zXml.DOM_VER=zXml.ARR_DOM_VERS[i];break;}catch(oError){;}}}if(zXml.DOM_VER){return new ActiveXObject(zXml.DOM_VER);}else{throw new Error("Could not create XML DOM document.");}}else{throw new Error("Your browser doesn't support an XML DOM document.");}};zXmlDom.isSupported=function(){return zXml.useDom||zXml.useActiveX;};var oMozDocument=null;if(typeof XMLDocument!="undefined"){oMozDocument=XMLDocument;}else if(typeof Document!="undefined"){oMozDocument=Document;}if(oMozDocument&&!window.opera){oMozDocument.prototype.readyState=0;oMozDocument.prototype.onreadystatechange=null;oMozDocument.prototype.__changeReadyState__=function(iReadyState){this.readyState=iReadyState;if(typeof this.onreadystatechange=="function"){this.onreadystatechange();}};oMozDocument.prototype.__initError__=function(){this.parseError.errorCode=0;this.parseError.filepos=-1;this.parseError.line=-1;this.parseError.linepos=-1;this.parseError.reason=null;this.parseError.srcText=null;this.parseError.url=null;};oMozDocument.prototype.__checkForErrors__=function(){if(this.documentElement.tagName=="parsererror"){var reError=/>([\s\S]*?)Location:([\s\S]*?)Line Number(\d+),Column(\d+):<sourcetext>([\s\S]*?)(?:\-*\^)/;reError.test(this.xml);this.parseError.errorCode=-999999;this.parseError.reason=RegExp.$1;this.parseError.url=RegExp.$2;this.parseError.line=parseInt(RegExp.$3);this.parseError.linepos=parseInt(RegExp.$4);this.parseError.srcText=RegExp.$5;}};oMozDocument.prototype.loadXML=function(sXml){this.__initError__();this.__changeReadyState__(1);var oParser=new DOMParser();var oXmlDom=oParser.parseFromString(sXml,"text/xml");while(this.firstChild){this.removeChild(this.firstChild);}for(var i=0;i<oXmlDom.childNodes.length;i++){var oNewNode=this.importNode(oXmlDom.childNodes[i],true);this.appendChild(oNewNode);}this.__checkForErrors__();this.__changeReadyState__(4);};oMozDocument.prototype.__load__=oMozDocument.prototype.load;oMozDocument.prototype.load=function(sURL){this.__initError__();this.__changeReadyState__(1);this.__load__(sURL);};Node.prototype.__defineGetter__("xml",function(){var oSerializer=new XMLSerializer();return oSerializer.serializeToString(this,"text/xml");});Node.prototype.__defineGetter__("text",function(){var sText="";for(var i=0;i<this.childNodes.length;i++){if(this.childNodes[i].hasChildNodes()){sText+=this.childNodes[i].text;}else{sText+=this.childNodes[i].nodeValue;}}return sText;});}function zXslt(){}zXslt.transformToText=function(oXml,oXslt){if(typeof XSLTProcessor!="undefined"){var oProcessor=new XSLTProcessor();oProcessor.importStylesheet(oXslt);var oResultDom=oProcessor.transformToDocument(oXml);var sResult=oResultDom.xml;if(sResult.indexOf("<transformiix:result")>-1){sResult=sResult.substring(sResult.indexOf(">")+1,sResult.lastIndexOf("<"));}return sResult;;}else if(zXml.useActiveX){return oXml.transformNode(oXslt);}else{throw new Error("No XSLT engine found.");}};function zXPath(){}zXPath.selectNodes=function(oRefNode,sXPath,oXmlNs){if(typeof XPathEvaluator!="undefined"){oXmlNs=oXmlNs||{};var nsResolver=function(sPrefix){return oXmlNs[sPrefix];};var oEvaluator=new XPathEvaluator();var oResult=oEvaluator.evaluate(sXPath,oRefNode,nsResolver,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);var aNodes=new Array;if(oResult!=null){var oElement=oResult.iterateNext();while(oElement){aNodes.push(oElement);oElement=oResult.iterateNext();}}return aNodes;}else if(zXml.useActiveX){if(oXmlNs){var sXmlNs="";for(var sProp in oXmlNs){sXmlNs+="xmlns:"+sProp+"=\'"+oXmlNs[sProp]+"\' ";}oRefNode.ownerDocument.setProperty("SelectionNamespaces",sXmlNs);};return oRefNode.selectNodes(sXPath);}else{throw new Error("No XPath engine found.");}};zXPath.selectSingleNode=function(oRefNode,sXPath,oXmlNs){if(typeof XPathEvaluator!="undefined"){;oXmlNs=oXmlNs||{};var nsResolver=function(sPrefix){return oXmlNs[sPrefix];};var oEvaluator=new XPathEvaluator();var oResult=oEvaluator.evaluate(sXPath,oRefNode,nsResolver,XPathResult.FIRST_ORDERED_NODE_TYPE,null);if(oResult!=null){return oResult.singleNodeValue;}else{return null;};}else if(zXml.useActiveX){if(oXmlNs){var sXmlNs="";for(var sProp in oXmlNs){sXmlNs+="xmlns:\'"+sProp+"="+oXmlNs[sProp]+"\' ";}oRefNode.ownerDocument.setProperty("SelectionNamespaces",sXmlNs);};return oRefNode.selectSingleNode(sXPath);}else{throw new Error("No XPath engine found.");}};function zXMLSerializer(){}zXMLSerializer.prototype.serializeToString=function(oNode){var sXml="";switch(oNode.nodeType){case 1:sXml="<"+oNode.tagName;for(var i=0;i<oNode.attributes.length;i++){sXml+=" "+oNode.attributes[i].name+"=\""+oNode.attributes[i].value+"\"";}sXml+=">";for(var i=0;i<oNode.childNodes.length;i++){sXml+=this.serializeToString(oNode.childNodes[i]);}sXml+="</"+oNode.tagName+">";break;case 3:sXml=oNode.nodeValue;break;case 4:sXml="<![CDATA["+oNode.nodeValue+"]]>";break;case 7:sXml="<?"+oNode.nodevalue+"?>";break;case 8:sXml="<!-"+oNode.nodevalue+"-->";break;case 9:for(var i=0;i<oNode.childNodes.length;i++){sXml+=this.serializeToString(oNode.childNodes[i]);}break;};return sXml;}; function AJAXcreateXMLHttp2(){ if (typeof XMLHttpRequest !="undefined"){ return new XMLHttpRequest(); } else if(window.ActiveXObject){ var aversions=["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"]; for(var i=0;i<aversions.length;i++){ try{ var oxmlhttp=new ActiveXObject(aversions[i]); return oxmlhttp } catch(oError) { } } } throw new Error("XMLHttp创建失败."); } </script><!------------------------------------end XMLHTTP------------------------><!------------------------------------XMLDOM------------------------><script language="JavaScript"> function AJAXcreateXMLdocument2(){ oxmldom=zXmlDom.createDocument(); return oxmldom } </script><!------------------------------------end XMLDOM------------------------><script language=javascript> function dingdopppost(id,bo){ var a=AJAXcreateXMLdocument2(); a.onreadystatechange=function(){ if (a.readyState==4) { if (a.parseError.errorCode!=0){ alert("数据读取错误,请重试!"); return ; } var root2=a.documentElement; var s2s1=root2.firstChild.text; var s2s3=root2.childNodes[1].text; if (s2s3=="1"){ var mmsga1=document.getElementById("dings_renx_do_"+id); var mmsga2=document.getElementById("dings_renx_"+id); mmsga1.innerHTML="谢谢.."; mmsga2.innerHTML=s2s1; } else{if(s2s3=="3"){ alert("此内容今天已顶过,请顶其他内容,此内容明天可再顶.."); } else{ alert("你今天能顶的次数已经用完,请明天再顶.."); mmsga1.innerHTML="请明天顶"; } } } } a.async=true; //异步模式 a.load("../inc/ND_dings_post.asp?id="+id+"&biao="+bo); } </script><% end if %><% ctypee="article" ctide=request("arid") if lcase(trim(ctypee))="article" then biaoqqa="[ND_Article_class]" biaoqq="[ND_Article]" biaoqqz="[ND_Article_Special]" end if if lcase(trim(ctypee))="down" then biaoqqa="[ND_down_class]" biaoqq="[ND_down]" biaoqqz="[ND_down_Special]" end if if lcase(trim(ctypee))="picsp" then biaoqqa="[ND_pic_or_sp_class]" biaoqq="[ND_pic_or_sp]" biaoqqz="[ND_pic_or_sp_Special]" end if if lcase(trim(ctypee))="cp" then biaoqqa="[ND_prod_class]" biaoqq="[ND_prod]" biaoqqz="[ND_prod_Special]" end if set rs_kkkk21a=server.createobject("adodb.recordset") sql="select * from "&biaoqq&" where id="&ctide rs_kkkk21a.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21a.eof then dings=rs_kkkk21a("dings") end if if cstr(dings&"")="" then dings=0 end if %><!--dings_1--> <div style="background: url(../images/diggxbg.gif) #fff no-repeat; width: 61px; height: 68px; text-align: center"> <div style="margin: 0px; padding-top: 1px"><span id="dings_renx_<%=ctide%>" style="font-weight: bold"><%=dings%></span><br /> <span>人支持</span></div> <div id="dings_renx_do_<%=ctide%>" style="margin: 0px; padding-top: 1px"><a href="javascript:dingdopppost('<%=ctide%>','<%=biaoqq%>')">顶一下</a></div> </div> <!--dings_1e--><!--nd_complie_linkx_end:[$$nd_dings_it(request("arid"),article)]xx--><%'complie-link:label-end[$$nd_dings_it(request("arid"),article)] %></td> </tr> <tr> <td bgcolor="#efefef"><!--counter_art_liul_1-->                        <%=stop_count_aastr%>[本日浏览:<%sqlxxx1112="select [ND_Article].id,[ND_Article].sys_content_type,[ND_Article].title,[ND_Article].sub_title,[ND_Article].classid,[ND_Article].SpecialID,[ND_Article].titleColor,[ND_Article].titleFont,[ND_Article].index_page_pic,[ND_Article].content,[ND_Article].is_outlink,[ND_Article].outlink,[ND_Article].Author_nick,[ND_Article].Comefrom,[ND_Article].is_new,[ND_Article].is_tuijian,[ND_Article].isTop,[ND_Article].Hits,[ND_Article].DayHits,[ND_Article].MonthHits,[ND_Article].HitsTime,[ND_Article].WriteTime,[ND_Article].username,[ND_Article].out_and_inner_img_list,[ND_Article].UploadImage_list,[ND_Article].Uploadfile_list,[ND_Article].is_shenhe,[ND_Article].is_can_pinlun,[ND_Article].is_auto_fenye,[ND_Article].xiangguan_wenzhang_keywords_list,[ND_Article].xing_ji,[ND_Article].update_time_input,[ND_Article].biaozi,[ND_Article].liulang_dengji_group_id,[ND_Article].dianshuo_to_look from [ND_Article] where [ND_Article].id="&request("arid")&"":rsxxx1112="rs_x":call isnnum(get_rs_value(18)):if isnnn=0 then response.write "值格式错误" :end if:if isnnn=1 then response.write Int(get_rs_value(18))%>  本月浏览:<%sqlxxx1112="select [ND_Article].id,[ND_Article].sys_content_type,[ND_Article].title,[ND_Article].sub_title,[ND_Article].classid,[ND_Article].SpecialID,[ND_Article].titleColor,[ND_Article].titleFont,[ND_Article].index_page_pic,[ND_Article].content,[ND_Article].is_outlink,[ND_Article].outlink,[ND_Article].Author_nick,[ND_Article].Comefrom,[ND_Article].is_new,[ND_Article].is_tuijian,[ND_Article].isTop,[ND_Article].Hits,[ND_Article].DayHits,[ND_Article].MonthHits,[ND_Article].HitsTime,[ND_Article].WriteTime,[ND_Article].username,[ND_Article].out_and_inner_img_list,[ND_Article].UploadImage_list,[ND_Article].Uploadfile_list,[ND_Article].is_shenhe,[ND_Article].is_can_pinlun,[ND_Article].is_auto_fenye,[ND_Article].xiangguan_wenzhang_keywords_list,[ND_Article].xing_ji,[ND_Article].update_time_input,[ND_Article].biaozi,[ND_Article].liulang_dengji_group_id,[ND_Article].dianshuo_to_look from [ND_Article] where [ND_Article].id="&request("arid")&"":rsxxx1112="rs_x":call isnnum(get_rs_value(19)):if isnnn=0 then response.write "值格式错误" :end if:if isnnn=1 then response.write Int(get_rs_value(19))%>  总浏览:<%sqlxxx1112="select [ND_Article].id,[ND_Article].sys_content_type,[ND_Article].title,[ND_Article].sub_title,[ND_Article].classid,[ND_Article].SpecialID,[ND_Article].titleColor,[ND_Article].titleFont,[ND_Article].index_page_pic,[ND_Article].content,[ND_Article].is_outlink,[ND_Article].outlink,[ND_Article].Author_nick,[ND_Article].Comefrom,[ND_Article].is_new,[ND_Article].is_tuijian,[ND_Article].isTop,[ND_Article].Hits,[ND_Article].DayHits,[ND_Article].MonthHits,[ND_Article].HitsTime,[ND_Article].WriteTime,[ND_Article].username,[ND_Article].out_and_inner_img_list,[ND_Article].UploadImage_list,[ND_Article].Uploadfile_list,[ND_Article].is_shenhe,[ND_Article].is_can_pinlun,[ND_Article].is_auto_fenye,[ND_Article].xiangguan_wenzhang_keywords_list,[ND_Article].xing_ji,[ND_Article].update_time_input,[ND_Article].biaozi,[ND_Article].liulang_dengji_group_id,[ND_Article].dianshuo_to_look from [ND_Article] where [ND_Article].id="&request("arid")&"":rsxxx1112="rs_x":call isnnum(get_rs_value(17)):if isnnn=0 then response.write "值格式错误" :end if:if isnnn=1 then response.write Int(get_rs_value(17))%>]<!--counter_art_liul_2--></td> </tr> <%ii=rs_x("classid")%> <tr> <td><%'complie-link:label-strat[$$next_pre_art(request("arid"),$xx_var_asp$ii)] %><!--nd_complie_linkx_start:[$$next_pre_art(request("arid"),$xx_var_asp$ii)]xx--> <table style="width: 360px; height: 26px" height="26" cellspacing="0" cellpadding="0" width="360" border="0"> <tbody> <tr> <td valign="bottom" width="80">上一篇:</td> <td> <%'complie-link:label-strat[$$pre_art(request("arid"),ii)] %><!--nd_complie_linkx_start:[$$pre_art(request("arid"),ii)]xx--> <% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <table border="0" cellpadding="0" cellspacing="0" ><% sql="select * from [ND_Article] where [ND_Article].id<"&request("arid")&" and [ND_Article].classid='"&ii&"' order by id desc" set rs_xntxa=server.CreateObject("adodb.recordset") rs_xntxa.open sql,newdsoft_conn_obj,1,1 if not rs_xntxa.eof then %><tr><td align="center"> <% iiii="nd_view_art.asp?arid="&rs_xntxa("id")&"&cid="&ii iiii2=left(rs_xntxa("title"),42) %> <table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td><a href="<%=iiii%>"><%=iiii2%></a></td> </tr> </tbody> </table></td></tr><%else%> <tr><td align="center"> <strong>没有内容……</strong> </td></tr> <%end if%></table><!--nd_complie_linkx_end:[$$pre_art(request("arid"),ii)]xx--><%'complie-link:label-end[$$pre_art(request("arid"),ii)] %></td> </tr> <tr> <td valign="bottom">下一篇:</td> <td> <%'complie-link:label-strat[$$next_art(request("arid"),ii)] %><!--nd_complie_linkx_start:[$$next_art(request("arid"),ii)]xx--> <% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <table border="0" cellpadding="0" cellspacing="0" ><% sql="select * from [ND_Article] where [ND_Article].id>"&request("arid")&" and [ND_Article].classid='"&ii&"' order by id asc" set rs_xntx=server.CreateObject("adodb.recordset") rs_xntx.open sql,newdsoft_conn_obj,1,1 if not rs_xntx.eof then %><tr><td align="center"> <% iiii="nd_view_art.asp?arid="&rs_xntx("id")&"&cid="&ii iiii2=left(rs_xntx("title"),42) %> <table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td><a href="<%=iiii%>"><%=iiii2%></a></td> </tr> </tbody> </table></td></tr><%else%> <tr><td align="center"> <strong>没有内容……</strong> </td></tr> <%end if%></table><!--nd_complie_linkx_end:[$$next_art(request("arid"),ii)]xx--><%'complie-link:label-end[$$next_art(request("arid"),ii)] %></td> </tr> </tbody> </table> <div> </div><!--nd_complie_linkx_end:[$$next_pre_art(request("arid"),$xx_var_asp$ii)]xx--><%'complie-link:label-end[$$next_pre_art(request("arid"),$xx_var_asp$ii)] %></td> </tr> <tr> <td bgcolor="#efefef"><strong>文章评论</strong> (评论内容只代表网友观点,与本站立场无关!)</td> </tr> <tr> <td><%'complie-link:label-strat[$$pinlun_c(Article,request("arid"))] %><!--nd_complie_linkx_start:[$$pinlun_c(Article,request("arid"))]xx--> <% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <%'complie-link:label-strat[$$nd_include_guolv_zhua()] %><!--nd_complie_linkx_start:[$$nd_include_guolv_zhua()]xx--> <% function guolv_zhua(contt) biao2="[ND_sys]" set rs22wwww=server.CreateObject("adodb.recordset") rs22wwww.open "select top 1 * from "&biao2&" where type='config_settings'",newdsoft_conn_obj,1,1 ddd1=rs22wwww("data") dddd12=split(ddd1,"|") unsss=dddd12(18) rs22wwww.close set rs22wwww=nothing if trim(unsss)<>"" and contt<>"" then unregt=split(trim(unsss),",") for ithi=0 to ubound(unregt) contt=replace(contt,trim(unregt(ithi)),"-*****自动过滤的非法字符*****-",1,-1,1) next end if guolv_zhua=contt end function %><!--nd_complie_linkx_end:[$$nd_include_guolv_zhua()]xx--><%'complie-link:label-end[$$nd_include_guolv_zhua()] %> <!-------------------------------------XMLHTTP------------------------> <script language="JavaScript"> var zXml={useActiveX:(typeof ActiveXObject!="undefined"),useDom:document.implementation&&document.implementation.createDocument,useXmlHttp:(typeof XMLHttpRequest!="undefined")};zXml.ARR_XMLHTTP_VERS=["MSXML2.XmlHttp.6.0","MSXML2.XmlHttp.3.0"];zXml.ARR_DOM_VERS=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.3.0"];function zXmlHttp(){}zXmlHttp.createRequest=function(){if(zXml.useXmlHttp){return new XMLHttpRequest();}else if(zXml.useActiveX){if(!zXml.XMLHTTP_VER){for(var i=0;i<zXml.ARR_XMLHTTP_VERS.length;i++){try{new ActiveXObject(zXml.ARR_XMLHTTP_VERS[i]);zXml.XMLHTTP_VER=zXml.ARR_XMLHTTP_VERS[i];break;}catch(oError){;}}}if(zXml.XMLHTTP_VER){return new ActiveXObject(zXml.XMLHTTP_VER);}else{throw new Error("Could not create XML HTTP Request.");}}else{throw new Error("Your browser doesn't support an XML HTTP Request.");}};zXmlHttp.isSupported=function(){return zXml.useXmlHttp||zXml.useActiveX;};function zXmlDom(){}zXmlDom.createDocument=function(){if(zXml.useDom){var oXmlDom=document.implementation.createDocument("","",null);oXmlDom.parseError={valueOf:function(){return this.errorCode;},toString:function(){return this.errorCode.toString()}};oXmlDom.__initError__();oXmlDom.addEventListener("load",function(){this.__checkForErrors__();this.__changeReadyState__(4);},false);return oXmlDom;;}else if(zXml.useActiveX){if(!zXml.DOM_VER){for(var i=0;i<zXml.ARR_DOM_VERS.length;i++){try{new ActiveXObject(zXml.ARR_DOM_VERS[i]);zXml.DOM_VER=zXml.ARR_DOM_VERS[i];break;}catch(oError){;}}}if(zXml.DOM_VER){return new ActiveXObject(zXml.DOM_VER);}else{throw new Error("Could not create XML DOM document.");}}else{throw new Error("Your browser doesn't support an XML DOM document.");}};zXmlDom.isSupported=function(){return zXml.useDom||zXml.useActiveX;};var oMozDocument=null;if(typeof XMLDocument!="undefined"){oMozDocument=XMLDocument;}else if(typeof Document!="undefined"){oMozDocument=Document;}if(oMozDocument&&!window.opera){oMozDocument.prototype.readyState=0;oMozDocument.prototype.onreadystatechange=null;oMozDocument.prototype.__changeReadyState__=function(iReadyState){this.readyState=iReadyState;if(typeof this.onreadystatechange=="function"){this.onreadystatechange();}};oMozDocument.prototype.__initError__=function(){this.parseError.errorCode=0;this.parseError.filepos=-1;this.parseError.line=-1;this.parseError.linepos=-1;this.parseError.reason=null;this.parseError.srcText=null;this.parseError.url=null;};oMozDocument.prototype.__checkForErrors__=function(){if(this.documentElement.tagName=="parsererror"){var reError=/>([\s\S]*?)Location:([\s\S]*?)Line Number(\d+),Column(\d+):<sourcetext>([\s\S]*?)(?:\-*\^)/;reError.test(this.xml);this.parseError.errorCode=-999999;this.parseError.reason=RegExp.$1;this.parseError.url=RegExp.$2;this.parseError.line=parseInt(RegExp.$3);this.parseError.linepos=parseInt(RegExp.$4);this.parseError.srcText=RegExp.$5;}};oMozDocument.prototype.loadXML=function(sXml){this.__initError__();this.__changeReadyState__(1);var oParser=new DOMParser();var oXmlDom=oParser.parseFromString(sXml,"text/xml");while(this.firstChild){this.removeChild(this.firstChild);}for(var i=0;i<oXmlDom.childNodes.length;i++){var oNewNode=this.importNode(oXmlDom.childNodes[i],true);this.appendChild(oNewNode);}this.__checkForErrors__();this.__changeReadyState__(4);};oMozDocument.prototype.__load__=oMozDocument.prototype.load;oMozDocument.prototype.load=function(sURL){this.__initError__();this.__changeReadyState__(1);this.__load__(sURL);};Node.prototype.__defineGetter__("xml",function(){var oSerializer=new XMLSerializer();return oSerializer.serializeToString(this,"text/xml");});Node.prototype.__defineGetter__("text",function(){var sText="";for(var i=0;i<this.childNodes.length;i++){if(this.childNodes[i].hasChildNodes()){sText+=this.childNodes[i].text;}else{sText+=this.childNodes[i].nodeValue;}}return sText;});}function zXslt(){}zXslt.transformToText=function(oXml,oXslt){if(typeof XSLTProcessor!="undefined"){var oProcessor=new XSLTProcessor();oProcessor.importStylesheet(oXslt);var oResultDom=oProcessor.transformToDocument(oXml);var sResult=oResultDom.xml;if(sResult.indexOf("<transformiix:result")>-1){sResult=sResult.substring(sResult.indexOf(">")+1,sResult.lastIndexOf("<"));}return sResult;;}else if(zXml.useActiveX){return oXml.transformNode(oXslt);}else{throw new Error("No XSLT engine found.");}};function zXPath(){}zXPath.selectNodes=function(oRefNode,sXPath,oXmlNs){if(typeof XPathEvaluator!="undefined"){oXmlNs=oXmlNs||{};var nsResolver=function(sPrefix){return oXmlNs[sPrefix];};var oEvaluator=new XPathEvaluator();var oResult=oEvaluator.evaluate(sXPath,oRefNode,nsResolver,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);var aNodes=new Array;if(oResult!=null){var oElement=oResult.iterateNext();while(oElement){aNodes.push(oElement);oElement=oResult.iterateNext();}}return aNodes;}else if(zXml.useActiveX){if(oXmlNs){var sXmlNs="";for(var sProp in oXmlNs){sXmlNs+="xmlns:"+sProp+"=\'"+oXmlNs[sProp]+"\' ";}oRefNode.ownerDocument.setProperty("SelectionNamespaces",sXmlNs);};return oRefNode.selectNodes(sXPath);}else{throw new Error("No XPath engine found.");}};zXPath.selectSingleNode=function(oRefNode,sXPath,oXmlNs){if(typeof XPathEvaluator!="undefined"){;oXmlNs=oXmlNs||{};var nsResolver=function(sPrefix){return oXmlNs[sPrefix];};var oEvaluator=new XPathEvaluator();var oResult=oEvaluator.evaluate(sXPath,oRefNode,nsResolver,XPathResult.FIRST_ORDERED_NODE_TYPE,null);if(oResult!=null){return oResult.singleNodeValue;}else{return null;};}else if(zXml.useActiveX){if(oXmlNs){var sXmlNs="";for(var sProp in oXmlNs){sXmlNs+="xmlns:\'"+sProp+"="+oXmlNs[sProp]+"\' ";}oRefNode.ownerDocument.setProperty("SelectionNamespaces",sXmlNs);};return oRefNode.selectSingleNode(sXPath);}else{throw new Error("No XPath engine found.");}};function zXMLSerializer(){}zXMLSerializer.prototype.serializeToString=function(oNode){var sXml="";switch(oNode.nodeType){case 1:sXml="<"+oNode.tagName;for(var i=0;i<oNode.attributes.length;i++){sXml+=" "+oNode.attributes[i].name+"=\""+oNode.attributes[i].value+"\"";}sXml+=">";for(var i=0;i<oNode.childNodes.length;i++){sXml+=this.serializeToString(oNode.childNodes[i]);}sXml+="</"+oNode.tagName+">";break;case 3:sXml=oNode.nodeValue;break;case 4:sXml="<![CDATA["+oNode.nodeValue+"]]>";break;case 7:sXml="<?"+oNode.nodevalue+"?>";break;case 8:sXml="<!--"+oNode.nodevalue+"-->";break;case 9:for(var i=0;i<oNode.childNodes.length;i++){sXml+=this.serializeToString(oNode.childNodes[i]);}break;};return sXml;}; function AJAXcreateXMLHttp(){ if (typeof XMLHttpRequest !="undefined"){ return new XMLHttpRequest(); } else if(window.ActiveXObject){ var aversions=["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"]; for(var i=0;i<aversions.length;i++){ try{ var oxmlhttp=new ActiveXObject(aversions[i]); return oxmlhttp } catch(oError) { } } } throw new Error("XMLHttp创建失败."); } </script> <!-------------------------------------end XMLHTTP------------------------> <!-------------------------------------XMLDOM------------------------> <script language="JavaScript"> function AJAXcreateXMLdocument(){ oxmldom=zXmlDom.createDocument(); return oxmldom } </script> <!-------------------------------------end XMLDOM------------------------> <script language=javascript> var mmsga; function dopppost(id,ww){ mmsga=document.getElementById("mmsg_"+id); mmsga.style.display="inline"; mmsga.innerHTML='<font color=#000000>数据提交中,请稍后....</font>'; var a=AJAXcreateXMLdocument(); a.onreadystatechange=function(){ if (a.readyState==4) { if (a.parseError.errorCode!=0){ alert("数据读取错误,请重试!"); return ; } var root2=a.documentElement; var s2s1=root2.firstChild.text; var s2s2=root2.childNodes[1].text; var s2s3=root2.childNodes[2].text; if (s2s3=="1"){ var mmsga1=document.getElementById("mmsg1_"+id); var mmsga2=document.getElementById("mmsg2_"+id); mmsga1.innerHTML=s2s1; mmsga2.innerHTML=s2s2; mmsga.innerHTML="提交成功.."; setTimeout("mmsga.style.display='none';",1500); } else{ alert("你今天能投的票数已经用完,请明天再投票.."); mmsga.innerHTML="你今天能投的票数已经用完,请明天再投票.."; setTimeout("mmsga.style.display='none';",1500); } } } a.async=true; //异步模式 a.load("../inc/ND_pinlun_toupian_post.asp?id="+id+"&ww="+ww); } </script> <!--xpinlun_lb_s_1--> <table border="0" cellpadding="0" cellspacing="0" width="$xxvar$width"> <% CurrentPage3733357755=replacebadchar(request("page3733357755")) if CurrentPage3733357755="" then CurrentPage3733357755=1 else if not IsNumeric(CurrentPage3733357755) then CurrentPage3733357755=1 else if int(CurrentPage3733357755)<=0 then CurrentPage3733357755=1 else CurrentPage3733357755=replaceBadchar(request("page3733357755")) end if end if end if sql="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc" %> <% maxperpage3733357755=8 '获取自身文件名 aryxx =split(Request.ServerVariables("SCRIPT_NAME"),"/") fileNamexx = aryxx(ubound(aryxx)) strFileName=fileNamexx set rspplun=server.CreateObject("adodb.recordset") rspplun.open sql,newdsoft_conn_obj,1,1 if not rspplun.eof then rspplun.pagesize=MaxPerpage3733357755 totalnumber3733357755=rspplun.recordcount if totalnumber3733357755 mod maxperpage3733357755=0 then MaxPage= totalnumber3733357755 \ MaxPerpage3733357755 else MaxPage= totalnumber3733357755 \ MaxPerpage3733357755+1 end if if int(CurrentPage3733357755)>int(MaxPage) then CurrentPage3733357755=MaxPage else CurrentPage3733357755=CurrentPage3733357755 end if rspplun.absolutepage=CurrentPage3733357755 for ni3733357755=1 to maxperpage3733357755 if rspplun.eof then exit for %><% %><tr><td> <table width="100%" border="0"> <tbody> <tr> <td width="8"> <div> </div> </td> </tr> <tr> <td bgcolor="#eeeeee"><hr />  用户 <%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(7))&"":response.write Replace(cstr(get_rs_value(7))&"", "<", "<")%> <%if rspplun("user_id")="" or rspplun("user_id")="no" or rspplun("user_id")=null or isempty(rspplun("user_id"))=true then%>(匿名) <%else%><%end if%>  在<%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":call isddat(get_rs_value(8)):if isnnn=0 then response.write "日期格式错误" :end if:if isnnn<>0 then temptime=get_rs_value(8) :end if:if isnnn<>0 then www123ww123es=Replace(Replace(Replace(Replace(Replace(Replace("{year}-{month}-{day}", "{year}", Year(temptime)), "{month}", Month(temptime)), "{day}", Day(temptime)), "{Hour}", Hour(temptime)), "{Minute}", Minute(temptime)), "{Second}", Second(temptime)):response.write www123ww123es%> 发表了以下评论   ( 评论者ip=<%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(9))&"":response.write Replace(cstr(get_rs_value(9))&"", "<", "<")%>) :</td> </tr> <tr> <td valign="middle" align="left" bgcolor="#eeeeee"> <div> <table style="width: 401px; height: 49px" height="49" cellspacing="0" cellpadding="0" width="401" align="left" border="0"> <tbody> <tr> <td>支持本评论的:</td> <td width="60"> <div id="mmsg1_<%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(0))&"":response.write cstr(get_rs_value(0))&""%>"><%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(10))&"":response.write cstr(get_rs_value(10))&""%></div> </td> <td>个人</td> <td>(<a onclick="dopppost(<%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(0))&"":response.write cstr(get_rs_value(0))&""%>,1);" href="javascript:">我要支持</a>) </td> </tr> <tr> <td>反对本评论的:</td> <td> <div id="mmsg2_<%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(0))&"":response.write cstr(get_rs_value(0))&""%>"><%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(11))&"":response.write cstr(get_rs_value(11))&""%></div> </td> <td>个人</td> <td>(<a onclick="dopppost(<%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(0))&"":response.write cstr(get_rs_value(0))&""%>,0);" href="javascript:">我要反对</a>) </td> </tr> </tbody> </table> </div> <div id="mmsg_<%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(0))&"":response.write cstr(get_rs_value(0))&""%>" style="display: none"><br />  </div> </td> </tr> <tr> <td bgcolor="#eeeeee"> <div>用户打分:    <%sqlxxx1112="select [ND_pinlun].ID,[ND_pinlun].sys_content_type,[ND_pinlun].lanmu_type,[ND_pinlun].postid,[ND_pinlun].content,[ND_pinlun].fen,[ND_pinlun].user_id,[ND_pinlun].username,[ND_pinlun].postime,[ND_pinlun].postip,[ND_pinlun].good_count,[ND_pinlun].bad_count,[ND_pinlun].is_shenhe from [ND_pinlun] where lanmu_type='Article' and postid="&request("arid")&" and is_shenhe='1' order by id desc":rsxxx1112="rspplun":wewewe=cstr(get_rs_value(5))&"":response.write cstr(get_rs_value(5))&""%> 分<br /> 评论内容:     <%=guolv_zhua(rspplun("content"))%></div> </td> </tr> </tbody> </table> <div> </div></td></tr><% rspplun.movenext next %> <% else %> <%=nd_sys_nocontent_msg_x_a%><%nd_sys_nocontent_msg_x_a=""%> <%end if%> <%if 1=1 then %> <tr> <td colspan="7" align="center" height="27" > <% call showpage3733357755(strFileName,totalnumber3733357755,MaxPerPage3733357755,true,true,"个",CurrentPage3733357755) %> </td> </tr> <%end if %></table> <!--xpinlun_lb_s_2--><!--nd_complie_linkx_end:[$$pinlun_c(Article,request("arid"))]xx--><%'complie-link:label-end[$$pinlun_c(Article,request("arid"))] %></td> </tr> <tr> <td bgcolor="#efefef"><b>相关文章</b></td> </tr> <tr> <td><%'complie-link:label-strat[$$xiangguan(Article,request("arid"))] %><!--nd_complie_linkx_start:[$$xiangguan(Article,request("arid"))]xx--> <div>{$xianggua(Article,request("arid"))}</div><!--nd_complie_linkx_end:[$$xiangguan(Article,request("arid"))]xx--><%'complie-link:label-end[$$xiangguan(Article,request("arid"))] %></td> </tr> </tbody> </table> </div></td></tr><%else%> <tr><td align="center"> <strong>没有内容……</strong> </td></tr> <%end if%></table><!--nd_complie_linkx_end:[$$nd_view_art($xx_request_asp$arid)]xx--><%'complie-link:label-end[$$nd_view_art($xx_request_asp$arid)] %><br> <%'complie-link:label-strat[$$pinlun(Article,$xx_request_asp$arid)] %><!--nd_complie_linkx_start:[$$pinlun(Article,$xx_request_asp$arid)]xx--> <% Private Const BITS_TO_A_BYTE = 8 Private Const BYTES_TO_A_WORD = 4 Private Const BITS_TO_A_WORD = 32 Private m_lOnBits(30) Private m_l2Power(30) Private Function LShift(lValue, iShiftBits) If iShiftBits = 0 Then LShift = lValue Exit Function ElseIf iShiftBits = 31 Then If lValue And 1 Then LShift = &H80000000 Else LShift = 0 End If Exit Function ElseIf iShiftBits < 0 Or iShiftBits > 31 Then Err.Raise 6 End If If (lValue And m_l2Power(31 - iShiftBits)) Then LShift = ((lValue And m_lOnBits(31 - (iShiftBits + 1))) * m_l2Power(iShiftBits)) Or &H80000000 Else LShift = ((lValue And m_lOnBits(31 - iShiftBits)) * m_l2Power(iShiftBits)) End If End Function Private Function RShift(lValue, iShiftBits) If iShiftBits = 0 Then RShift = lValue Exit Function ElseIf iShiftBits = 31 Then If lValue And &H80000000 Then RShift = 1 Else RShift = 0 End If Exit Function ElseIf iShiftBits < 0 Or iShiftBits > 31 Then Err.Raise 6 End If RShift = (lValue And &H7FFFFFFE) \ m_l2Power(iShiftBits) If (lValue And &H80000000) Then RShift = (RShift Or (&H40000000 \ m_l2Power(iShiftBits - 1))) End If End Function Private Function RotateLeft(lValue, iShiftBits) RotateLeft = LShift(lValue, iShiftBits) Or RShift(lValue, (32 - iShiftBits)) End Function Private Function AddUnsigned(lX, lY) 'dim lX4 'dim lY4 'dim lX8 'dim lY8 'dim lResult lX8 = lX And &H80000000 lY8 = lY And &H80000000 lX4 = lX And &H40000000 lY4 = lY And &H40000000 lResult = (lX And &H3FFFFFFF) + (lY And &H3FFFFFFF) If lX4 And lY4 Then lResult = lResult Xor &H80000000 Xor lX8 Xor lY8 ElseIf lX4 Or lY4 Then If lResult And &H40000000 Then lResult = lResult Xor &HC0000000 Xor lX8 Xor lY8 Else lResult = lResult Xor &H40000000 Xor lX8 Xor lY8 End If Else lResult = lResult Xor lX8 Xor lY8 End If AddUnsigned = lResult End Function Private Function md5_F(x, y, z) md5_F = (x And y) Or ((Not x) And z) End Function Private Function md5_G(x, y, z) md5_G = (x And z) Or (y And (Not z)) End Function Private Function md5_H(x, y, z) md5_H = (x Xor y Xor z) End Function Private Function md5_I(x, y, z) md5_I = (y Xor (x Or (Not z))) End Function Private Sub md5_FF(a, b, c, d, x, s, ac) a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_F(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub Private Sub md5_GG(a, b, c, d, x, s, ac) a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_G(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub Private Sub md5_HH(a, b, c, d, x, s, ac) a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_H(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub Private Sub md5_II(a, b, c, d, x, s, ac) a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_I(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub Private Function ConvertToWordArray(sMessage) 'dim lMessageLength 'dim lNumberOfWords 'dim lWordArray() 'dim lBytePosition 'dim lByteCount 'dim lWordCount Const MODULUS_BITS = 512 Const CONGRUENT_BITS = 448 lMessageLength = Len(sMessage) lNumberOfWords = (((lMessageLength + ((MODULUS_BITS - CONGRUENT_BITS) \ BITS_TO_A_BYTE)) \ (MODULUS_BITS \ BITS_TO_A_BYTE)) + 1) * (MODULUS_BITS \ BITS_TO_A_WORD) redim lWordArray(lNumberOfWords - 1) lBytePosition = 0 lByteCount = 0 Do Until lByteCount >= lMessageLength lWordCount = lByteCount \ BYTES_TO_A_WORD lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE lWordArray(lWordCount) = lWordArray(lWordCount) Or LShift(Asc(Mid(sMessage, lByteCount + 1, 1)), lBytePosition) lByteCount = lByteCount + 1 Loop lWordCount = lByteCount \ BYTES_TO_A_WORD lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE lWordArray(lWordCount) = lWordArray(lWordCount) Or LShift(&H80, lBytePosition) lWordArray(lNumberOfWords - 2) = LShift(lMessageLength, 3) lWordArray(lNumberOfWords - 1) = RShift(lMessageLength, 29) ConvertToWordArray = lWordArray End Function Private Function WordToHex(lValue) 'dim lByte 'dim lCount For lCount = 0 To 3 lByte = RShift(lValue, lCount * BITS_TO_A_BYTE) And m_lOnBits(BITS_TO_A_BYTE - 1) WordToHex = WordToHex & Right("0" & Hex(lByte), 2) Next End Function Public Function MD5x(sMessage) m_lOnBits(0) = CLng(1) m_lOnBits(1) = CLng(3) m_lOnBits(2) = CLng(7) m_lOnBits(3) = CLng(15) m_lOnBits(4) = CLng(31) m_lOnBits(5) = CLng(63) m_lOnBits(6) = CLng(127) m_lOnBits(7) = CLng(255) m_lOnBits(8) = CLng(511) m_lOnBits(9) = CLng(1023) m_lOnBits(10) = CLng(2047) m_lOnBits(11) = CLng(4095) m_lOnBits(12) = CLng(8191) m_lOnBits(13) = CLng(16383) m_lOnBits(14) = CLng(32767) m_lOnBits(15) = CLng(65535) m_lOnBits(16) = CLng(131071) m_lOnBits(17) = CLng(262143) m_lOnBits(18) = CLng(524287) m_lOnBits(19) = CLng(1048575) m_lOnBits(20) = CLng(2097151) m_lOnBits(21) = CLng(4194303) m_lOnBits(22) = CLng(8388607) m_lOnBits(23) = CLng(16777215) m_lOnBits(24) = CLng(33554431) m_lOnBits(25) = CLng(67108863) m_lOnBits(26) = CLng(134217727) m_lOnBits(27) = CLng(268435455) m_lOnBits(28) = CLng(536870911) m_lOnBits(29) = CLng(1073741823) m_lOnBits(30) = CLng(2147483647) m_l2Power(0) = CLng(1) m_l2Power(1) = CLng(2) m_l2Power(2) = CLng(4) m_l2Power(3) = CLng(8) m_l2Power(4) = CLng(16) m_l2Power(5) = CLng(32) m_l2Power(6) = CLng(64) m_l2Power(7) = CLng(128) m_l2Power(8) = CLng(256) m_l2Power(9) = CLng(512) m_l2Power(10) = CLng(1024) m_l2Power(11) = CLng(2048) m_l2Power(12) = CLng(4096) m_l2Power(13) = CLng(8192) m_l2Power(14) = CLng(16384) m_l2Power(15) = CLng(32768) m_l2Power(16) = CLng(65536) m_l2Power(17) = CLng(131072) m_l2Power(18) = CLng(262144) m_l2Power(19) = CLng(524288) m_l2Power(20) = CLng(1048576) m_l2Power(21) = CLng(2097152) m_l2Power(22) = CLng(4194304) m_l2Power(23) = CLng(8388608) m_l2Power(24) = CLng(16777216) m_l2Power(25) = CLng(33554432) m_l2Power(26) = CLng(67108864) m_l2Power(27) = CLng(134217728) m_l2Power(28) = CLng(268435456) m_l2Power(29) = CLng(536870912) m_l2Power(30) = CLng(1073741824) 'dim x 'dim k 'dim AA 'dim BB 'dim CC 'dim DD 'dim a 'dim b 'dim c 'dim d Const S11 = 7 Const S12 = 12 Const S13 = 17 Const S14 = 22 Const S21 = 5 Const S22 = 9 Const S23 = 14 Const S24 = 20 Const S31 = 4 Const S32 = 11 Const S33 = 16 Const S34 = 23 Const S41 = 6 Const S42 = 10 Const S43 = 15 Const S44 = 21 x = ConvertToWordArray(sMessage) a = &H67452301 b = &HEFCDAB89 c = &H98BADCFE d = &H10325476 For k = 0 To UBound(x) Step 16 AA = a BB = b CC = c DD = d md5_FF a, b, c, d, x(k + 0), S11, &HD76AA478 md5_FF d, a, b, c, x(k + 1), S12, &HE8C7B756 md5_FF c, d, a, b, x(k + 2), S13, &H242070DB md5_FF b, c, d, a, x(k + 3), S14, &HC1BDCEEE md5_FF a, b, c, d, x(k + 4), S11, &HF57C0FAF md5_FF d, a, b, c, x(k + 5), S12, &H4787C62A md5_FF c, d, a, b, x(k + 6), S13, &HA8304613 md5_FF b, c, d, a, x(k + 7), S14, &HFD469501 md5_FF a, b, c, d, x(k + 8), S11, &H698098D8 md5_FF d, a, b, c, x(k + 9), S12, &H8B44F7AF md5_FF c, d, a, b, x(k + 10), S13, &HFFFF5BB1 md5_FF b, c, d, a, x(k + 11), S14, &H895CD7BE md5_FF a, b, c, d, x(k + 12), S11, &H6B901122 md5_FF d, a, b, c, x(k + 13), S12, &HFD987193 md5_FF c, d, a, b, x(k + 14), S13, &HA679438E md5_FF b, c, d, a, x(k + 15), S14, &H49B40821 md5_GG a, b, c, d, x(k + 1), S21, &HF61E2562 md5_GG d, a, b, c, x(k + 6), S22, &HC040B340 md5_GG c, d, a, b, x(k + 11), S23, &H265E5A51 md5_GG b, c, d, a, x(k + 0), S24, &HE9B6C7AA md5_GG a, b, c, d, x(k + 5), S21, &HD62F105D md5_GG d, a, b, c, x(k + 10), S22, &H2441453 md5_GG c, d, a, b, x(k + 15), S23, &HD8A1E681 md5_GG b, c, d, a, x(k + 4), S24, &HE7D3FBC8 md5_GG a, b, c, d, x(k + 9), S21, &H21E1CDE6 md5_GG d, a, b, c, x(k + 14), S22, &HC33707D6 md5_GG c, d, a, b, x(k + 3), S23, &HF4D50D87 md5_GG b, c, d, a, x(k + 8), S24, &H455A14ED md5_GG a, b, c, d, x(k + 13), S21, &HA9E3E905 md5_GG d, a, b, c, x(k + 2), S22, &HFCEFA3F8 md5_GG c, d, a, b, x(k + 7), S23, &H676F02D9 md5_GG b, c, d, a, x(k + 12), S24, &H8D2A4C8A md5_HH a, b, c, d, x(k + 5), S31, &HFFFA3942 md5_HH d, a, b, c, x(k + 8), S32, &H8771F681 md5_HH c, d, a, b, x(k + 11), S33, &H6D9D6122 md5_HH b, c, d, a, x(k + 14), S34, &HFDE5380C md5_HH a, b, c, d, x(k + 1), S31, &HA4BEEA44 md5_HH d, a, b, c, x(k + 4), S32, &H4BDECFA9 md5_HH c, d, a, b, x(k + 7), S33, &HF6BB4B60 md5_HH b, c, d, a, x(k + 10), S34, &HBEBFBC70 md5_HH a, b, c, d, x(k + 13), S31, &H289B7EC6 md5_HH d, a, b, c, x(k + 0), S32, &HEAA127FA md5_HH c, d, a, b, x(k + 3), S33, &HD4EF3085 md5_HH b, c, d, a, x(k + 6), S34, &H4881D05 md5_HH a, b, c, d, x(k + 9), S31, &HD9D4D039 md5_HH d, a, b, c, x(k + 12), S32, &HE6DB99E5 md5_HH c, d, a, b, x(k + 15), S33, &H1FA27CF8 md5_HH b, c, d, a, x(k + 2), S34, &HC4AC5665 md5_II a, b, c, d, x(k + 0), S41, &HF4292244 md5_II d, a, b, c, x(k + 7), S42, &H432AFF97 md5_II c, d, a, b, x(k + 14), S43, &HAB9423A7 md5_II b, c, d, a, x(k + 5), S44, &HFC93A039 md5_II a, b, c, d, x(k + 12), S41, &H655B59C3 md5_II d, a, b, c, x(k + 3), S42, &H8F0CCC92 md5_II c, d, a, b, x(k + 10), S43, &HFFEFF47D md5_II b, c, d, a, x(k + 1), S44, &H85845DD1 md5_II a, b, c, d, x(k + 8), S41, &H6FA87E4F md5_II d, a, b, c, x(k + 15), S42, &HFE2CE6E0 md5_II c, d, a, b, x(k + 6), S43, &HA3014314 md5_II b, c, d, a, x(k + 13), S44, &H4E0811A1 md5_II a, b, c, d, x(k + 4), S41, &HF7537E82 md5_II d, a, b, c, x(k + 11), S42, &HBD3AF235 md5_II c, d, a, b, x(k + 2), S43, &H2AD7D2BB md5_II b, c, d, a, x(k + 9), S44, &HEB86D391 a = AddUnsigned(a, AA) b = AddUnsigned(b, BB) c = AddUnsigned(c, CC) d = AddUnsigned(d, DD) Next MD5x=LCase(WordToHex(b) & WordToHex(c)& WordToHex(a)& WordToHex(b)& WordToHex(c)& WordToHex(a)) End Function Public Function MD5(sMessage) MD5=MD5x(MD5x(MD5x(MD5x(sMessage)))) End Function If Request.ServerVariables("QUERY_STRING")="" Then '获取自身文件名 aryxx =split(Request.ServerVariables("SCRIPT_NAME"),"/") fileNamexx = aryxx(ubound(aryxx)) strFileName=fileNamexx if instr(1,strFileName,"?",1)<>0 then strFileName=left(strFileName,instr(1,strFileName,"?",1)-1) else strFileName=strFileName end if if instr(1,Request.ServerVariables("QUERY_STRING"),"dopstttt=",1)=0 then URLa=strFileName&"?dopstttt=1" else URLa=strFileName&"?"&Request.ServerVariables("QUERY_STRING") end if Else if instr(1,Request.ServerVariables("QUERY_STRING"),"dopstttt=",1)=0 then URLa=strFileName&"?"&Request.ServerVariables("QUERY_STRING")&"&dopstttt=1" else URLa=strFileName&"?"&Request.ServerVariables("QUERY_STRING") end if end if ioioppp=1 if request("dopstttt")<>"" and request("nodo")="" then ComeUrl=lcase(trim(request.ServerVariables("HTTP_REFERER"))) if len(request("ccntt"))>2000 then ioioppp=0 response.write "<br><p align=center><font color='red'>对不起,您发表的评论内容的长度过长。</font></p>" response.write "<script language=javascript>alert('对不起,您发表的评论内容的长度过长');history.go(-1);</script>" end if If request("ccode") = "" Then ioioppp=0 str= "验证码不能为空!" End If If Trim(Session("CheckCode")) = "" and session("CheckCode_r_nnnn")<>"ccc" and ioioppp=1 Then ioioppp=0 str= "时间已超时,请重新输入并提交" End If If request("ccode") <> Session("CheckCode") and session("CheckCode_r_nnnn")<>"ccc" and ioioppp=1 Then ioioppp=0 str= "您输入的验证码和系统产生的不一致,请重新输入。" End If If trim(request("ccntt"))="" and ioioppp=1 Then ioioppp=0 str= "请填写评论内容" End If If trim(request("uname"))="" and ioioppp=1 Then ioioppp=0 str= "请填写用户名" End If if str<>"" then response.write str response.write "<script language=javascript>alert('"&str&"');history.go(-1);</script>" end if if ioioppp=1 then '-----------------------------------------------------防刷新 If Request.Cookies("newdsoft")("norefreshaazz")<>"" and request("nodo")="" and ioioppp=1 Then If DateDiff("s",Request.Cookies("newdsoft")("norefreshaazz"),Now())<20 Then ioioppp=0 response.write "<br><p align=center><font color='red'>对不起,您发表评论的次数太频繁,请在20秒后再发表评论。</font></p>" response.write "<script language=javascript>alert('对不起,您发表评论的次数太频繁,请在20秒后再发表评论')</script>" else Response.Cookies("newdsoft")("norefreshaazz")=Now() Response.Cookies("newdsoft").Expires=DateAdd("n",180,now()) End IF End if If Request.Cookies("newdsoft")("norefreshaazz")="" then Response.Cookies("newdsoft")("norefreshaazz")=Now() Response.Cookies("newdsoft").Expires=DateAdd("n",180,now()) end if '---------------------------------------------end--------防刷新 end if end if Private Function getIP() If Request.ServerVariables("HTTP_X_FORWARDED_FOR") = "" Or InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), "unknown") > 0 Then strIPAddr = Request.ServerVariables("REMOTE_ADDR") ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",") > 0 Then strIPAddr = Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1, InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",")-1) Actforip = Request.ServerVariables("REMOTE_ADDR") ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";") > 0 Then strIPAddr = Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1, InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";")-1) Actforip = Request.ServerVariables("REMOTE_ADDR") Else strIPAddr = Request.ServerVariables("HTTP_X_FORWARDED_FOR") Actforip = Request.ServerVariables("REMOTE_ADDR") End If getIP = Replace(Trim(Mid(strIPAddr, 1, 30)), "'", "") End Function if ioioppp=1 and request("dopstttt")="1" and request("nodo")<>"1" then set rs44g=server.CreateObject("adodb.recordset") rs44g.open "select * from [ND_pinlun]",newdsoft_conn_obj,1,3 rs44g.addnew rs44g("lanmu_type")=request("ctype") rs44g("postid")=request("zzid") rs44g("postime")=now() rs44g("postip")=getIP() rs44g("content")=request("ccntt") if request("uid")<>"" then rs44g("user_id")=request("uid") rs44g("username")=request("uname") else dddunm=trim(replace(request("uname"),"'","111---------")) set rs44gdd=server.CreateObject("adodb.recordset") rs44gdd.open "select * from [ND_user] where [username]='"&dddunm&"' and pwd='"&md5(request("pwd"))&"'",newdsoft_conn_obj,1,1 if not rs44gdd.eof then rs44g("user_id")=rs44gdd("id") rs44g("username")=dddunm else rs44g("username")=dddunm rs44g("user_id")="" end if end if if lcase(trim(request("ctype")))="article" then biaoqqa="[ND_Article]" end if if lcase(trim(request("ctype")))="down" then biaoqqa="[ND_down]" end if if lcase(trim(request("ctype")))="picsp" then biaoqqa="[ND_pic_or_sp]" end if if lcase(trim(request("ctype")))="cp" then biaoqqa="[ND_prod]" end if set rs44gdd1=server.CreateObject("adodb.recordset") rs44gdd1.open "select * from "&biaoqqa&" where id="&request("zzid"),newdsoft_conn_obj,1,1 rs44g("sys_content_type")=rs44gdd1("sys_content_type") rs44g("fen")=request("Grade") rs44g("is_shenhe")="1" rs44g.update Session("CheckCode")="" response.write "<script language=javascript>alert('评论发表成功!');self.location='"&request("urlll")&"&nodo=1"&"';</script>" end if %> <div><style type="text/css"> <!-- #plffffb { border: 1px solid #CCCCCC; } --></style></div> <%URLa=replace(URLa,"&nodo=1","")%><% ctt="Article" if lcase(trim(ctt))="article" then biaoqqa="[ND_Article]" end if if lcase(trim(ctt))="down" then biaoqqa="[ND_down]" end if if lcase(trim(ctt))="picsp" then biaoqqa="[ND_pic_or_sp]" end if if lcase(trim(ctt))="cp" then biaoqqa="[ND_prod]" end if set rs44gdd12=server.CreateObject("adodb.recordset") rs44gdd12.open "select * from "&biaoqqa&" where id="&request("arid"),newdsoft_conn_obj,1,1 can_pplll=1 if not rs44gdd12.eof then if rs44gdd12("is_can_pinlun")<>"1" then can_pplll=0 end if else can_pplll=0 end if %><% if can_pplll=0 then%> <table width="470" align="left" border="0"> <tbody> <tr> <td align="left" width="100%"><!--不能评论--></td> </tr> </tbody> </table> <%else%> <form action="<%=URLa%>" method="post"> <div id="plffffb"> <table style="width: 427px; height: 112px" cellspacing="1" cellpadding="1" width="470" align="left" bgcolor="#cccccc" border="0"> <tbody> <tr bgcolor="#ffffff"> <td width="64">用户名:</td> <td width="359"><% if request.Cookies("nd_cc_cache_logined_user")<>"" then uuunmm=request.Cookies("nd_cc_cache_logined_user") else if session("nd_cache_logined_user")<>"" then uuunmm=session("nd_cache_logined_user") else uuunmm="" end if end if if uuunmm<>"" then set rs44g1=server.CreateObject("adodb.recordset") rs44g1.open "select * from [ND_user] where [username]='"&uuunmm&"'",newdsoft_conn_obj,1,1 uuunmid="" if not rs44g1.eof then uuunmid=rs44g1("id") end if end if if uuunmm<>"" then %><input readonly="readonly" size="15" name="unamaeww" value="<%=uuunmm%>" type="text" /> <input type="hidden" name="uname" value="<%=uuunmm%>" /> <%else %><input size="15" name="uname" type="text" />  密码:<input type="password" size="15" name="pwd" /> (如果匿名,不用填密码) <%end if %></td> </tr> <tr bgcolor="#ffffff"> <td>打 分:</td> <td><input type="radio" name="Grade" value="100" />100分 <input type="radio" checked="checked" name="Grade" value="85" />85分 <input type="radio" name="Grade" value="70" />70分 <input type="radio" name="Grade" value="55" />55分 <input type="radio" name="Grade" value="40" />40分 <input type="radio" name="Grade" value="25" />25分 <input type="radio" name="Grade" value="10" />10分 <input type="radio" name="Grade" value="0" />0分</td> </tr> <tr bgcolor="#ffffff"> <td> 评论内容:</td> <td><textarea rows="5" cols="30" name="ccntt"></textarea></td> </tr> <tr bgcolor="#ffffff"> <td> 验证码:</td> <td><input id="ccode" size="14" name="ccode" type="text" />  请输入<img id="chcodeimg" alt="" src="../inc/checkcode.asp" /> <% '以下这句可以防止重新返回本页后 验证码不刷新而 导致的验证码总为空 而导致的登陆不了 if session("CheckCode")="" then '防止刷新后不行又自动不断刷新,最大重试次数限制为max_r_c_ci max_r_c_ci=0 if session("CheckCode_r_count")="" then session("CheckCode_r_count")=1 else session("CheckCode_r_count")=session("CheckCode_r_count")+1 end if if session("CheckCode_r_count")>=max_r_c_ci then session("CheckCode_r_count")=1 session("CheckCode_r_nnnn")="ccc" response.write "<input type='hidden' name='xxccxxzsax' value='a'>" else %><script language=javascript> window.location.reload(); </script><% end if else session("CheckCode_r_count")=1 end if %></td> </tr> <tr bgcolor="#ffffff"> <td colspan="2">                    <input type="hidden" name="zzid" value="<%=request("arid")%>" /> <input type="hidden" name="uid" value="<%=uuunmid%>" /> <input type="hidden" name="ctype" value="Article" /> <% If Request.ServerVariables("QUERY_STRING")="" Then '获取自身文件名 aryxx =split(Request.ServerVariables("SCRIPT_NAME"),"/") fileNamexx = aryxx(ubound(aryxx)) strFileName=fileNamexx if instr(1,strFileName,"?",1)<>0 then strFileName=left(strFileName,instr(1,strFileName,"?",1)-1) else strFileName=strFileName end if URLaa=strFileName else URLaa=strFileName&"?"&Request.ServerVariables("QUERY_STRING") end if %><input type="hidden" name="urlll" value="<%=URLaa%>" /> <input type="submit" value="提交评论" /> </td> </tr> </tbody> </table> </div> </form> <%end if%><!--nd_complie_linkx_end:[$$pinlun(Article,$xx_request_asp$arid)]xx--><%'complie-link:label-end[$$pinlun(Article,$xx_request_asp$arid)] %></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> </table> </td> </tr> </table> <style type="text/css"> <!-- .style20 {color: #333333} --> </style> <TABLE cellSpacing=0 cellPadding=0 width=1003 align=center background=img/footbg.jpg border=0> <TBODY> <TR> <TD width="137" height=55 rowSpan=2 align=middle class=line20> </TD> <TD class=line20 align=left width=544 rowSpan=2><%'complie-link:label-strat[$$nd_web_foot(1,640)] %><!--nd_complie_linkx_start:[$$nd_web_foot(1,640)]xx--> <div><style type="text/css"> .picsize img {max-height:510px; max-width:510px; width:expression(this.width > 510 && this.height < this.width ? 510: true); height:expression(this.height > 510 ? 510: true);} .fooootoo {width:640 px;word-break:break-all;}</style></div> <% isqy=1 biao2="[ND_sys]" if cstr(isqy)<>"1" then set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1 end if wwwkeywords="" wwwbuttom="" if not rs22t.eof then sss1a=split(rs22t("data"),"|") wwwname=sss1a(0) wemail=sss1a(1) wwwkeywords=sss1a(2) wwwbuttom=sss1a(3) end if %> <table class="fooootoo" cellspacing="0" cellpadding="0" align="center" border="0"> <tbody> <tr> <td><%=wwwbuttom%> </td> </tr> </tbody> </table><!--nd_complie_linkx_end:[$$nd_web_foot(1,640)]xx--><%'complie-link:label-end[$$nd_web_foot(1,640)] %></TD> <TD class=line20 vAlign=top align=middle width=322 height=4></TD> </TR> <TR> <TD height="80" align=center vAlign=middle class=line20> </TD> </TR> </TBODY> </TABLE> </body> </html> <% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <% if havexpage3733357755="" then havexpage3733357755=1 sub showpage3733357755(sfilename,totalnumber,maxperpage,ShowTotal,ShowAllPages,strUnit,CurrentPage) 'dim n, i,strTemp,strUrl if instr(1,sfilename,"?",1)<>0 then sfilename=left(sfilename,instr(1,sfilename,"?",1)-1) else sfilename=sfilename end if strUrl=JoinChar(sfilename) Fy_Url1=Request.ServerVariables("QUERY_STRING") Fy_a1=split(Fy_Url1,"&") for Fy_x1=0 to ubound(Fy_a1) if instr(Fy_a1(Fy_x1),"=")=len(Fy_a1(Fy_x1)) then Fy_v ="" else Fy_v = mid(Fy_a1(Fy_x1),instr(Fy_a1(Fy_x1),"=")+1,len(Fy_a1(Fy_x1))) end if Fy_Cs_name= left(Fy_a1(Fy_x1),instr(Fy_a1(Fy_x1),"=")-1) if trim(Fy_Cs_name)<>"page3733357755" then strUrl=JoinChar(strUrl) strUrl=strUrl&Fy_Cs_name&"="&Fy_v end if Next if totalnumber mod maxperpage=0 then n= totalnumber \ maxperpage else n= totalnumber \ maxperpage+1 end if strTemp= "<table align='center' class=maintext><form name='showpages' method='post' action='" & sfilename & "'><tr><td>" if ShowTotal=true then strTemp=strTemp & "共 <b>" & totalnumber & "</b> " & strUnit & " " end if strUrl=JoinChar(strUrl) if CurrentPage<2 then strTemp=strTemp & "首页 上一页 " else strTemp=strTemp & "<a class=maintext href='" & strUrl & "page3733357755=1'>首页</a> " strTemp=strTemp & "<a class=maintext href='" & strUrl & "page3733357755=" & (CurrentPage-1) & "'>上一页</a> " end if if n-currentpage<1 then strTemp=strTemp & "下一页 尾页" else strTemp=strTemp & "<a class=maintext href='" & strUrl & "page3733357755=" & (CurrentPage+1) & "'>下一页</a> " strTemp=strTemp & "<a class=maintext href='" & strUrl & "page3733357755=" & n & "'>尾页</a>" end if strTemp=strTemp & " 页次:<strong><font color=red>" & CurrentPage & "</font>/" & n & "</strong>页 " strTemp=strTemp & " <b>" & maxperpage & "</b>" & strUnit & "/页" 'if ShowAllPages=True then 'strTemp=strTemp & " <select name='page3733357755' id='page' size='1' onchange='javascript:submit()'>" 'for i = 1 to n 'strTemp=strTemp & "<option value='" & i & "'" 'if cint(CurrentPage)=cint(i) then strTemp=strTemp & " selected " 'strTemp=strTemp & ">第" & i & "页</option>" ' next 'strTemp=strTemp & "</select>" 'end if strTemp=strTemp & "</td></tr></form></table>" response.write strTemp end sub end if %>